Bug 279816

Summary: Avoid defaulting to GH when USE_GITLAB and USE_GITHUB=nodefault is set
Product: Ports & Packages Reporter: Brad Davis <brd>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: New ---    
Severity: Affects Some People CC: ports-bugs
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Brad Davis freebsd_committer freebsd_triage 2024-06-17 14:14:59 UTC
Created attachment 251525 [details]
patch

When debugging some fetch failures I noticed that my port was always trying to fetch from github instead of gitlab when USE_GITLAB and USE_GITHUB=nodefault is set.  This appears to be because we check that MASTER_SITES is empty before USE_GITLAB has a chance to be run.

The attached patch modifies the logic so that USE_GITHUB=nodefault is checked even if MASTER_SITES is empty so that USE_GITLAB can populate it later.