git: f12462e4a9da - main - Revert "Mk/bsd.sites.mk: don't add GH to MASTER_SITES when USE_GITHUB=nodefault"

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Thu, 19 Sep 2024 12:49:08 UTC
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f12462e4a9dac4af314765e4df6ae223d426b65d

commit f12462e4a9dac4af314765e4df6ae223d426b65d
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2024-09-19 12:47:06 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2024-09-19 12:47:06 +0000

    Revert "Mk/bsd.sites.mk: don't add GH to MASTER_SITES when USE_GITHUB=nodefault"
    
    This reverts commit 06790548d50075cc2e2cfff4fe0811a561402cec.
---
 Mk/bsd.sites.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk
index 5fffe2e64865..e34fbb846144 100644
--- a/Mk/bsd.sites.mk
+++ b/Mk/bsd.sites.mk
@@ -294,7 +294,7 @@ GH_SUBDIR+=	${GH_TUPLE:C@^([^:]*):([^:]*):([^:]*)((:[^:/]*)?)((/.*)?)@\6\4@:M/*:
 MASTER_SITE_GITHUB+=		https://codeload.github.com/%SUBDIR%
 MASTER_SITE_GITHUB_CLOUD+=	https://cloud.github.com/downloads/%SUBDIR%
 
-.    if ( !defined(MASTER_SITES) || !${MASTER_SITES:MGH} && !${MASTER_SITES:MGHC} ) && !${USE_GITHUB:Mnodefault}
+.    if !defined(MASTER_SITES) || !${MASTER_SITES:MGH} && !${MASTER_SITES:MGHC} && !${USE_GITHUB:Mnodefault}
 MASTER_SITES+=	GH
 .    endif
 GH_ACCOUNT_DEFAULT=	${PORTNAME}