Skip to content

Commit df89738

Browse files
committed
Only upload blessed system packages
1 parent 25e30ae commit df89738

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

alibuild_helpers/utilities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ def getPackageList(packages, specs, configDir, preferSystem, noSystem,
508508
elif noSystem is not None:
509509
noSystemList = noSystem.split(",")
510510
systemExcluded = (spec["package"] in noSystemList)
511-
if (preferSystem or systemREMatches):
511+
allowSystemPackageUpload = spec.get("allow_system_package_upload", False)
512+
if (not systemExcluded or allowSystemPackageUpload) and (preferSystem or systemREMatches):
512513
requested_version = resolve_version(spec, defaults, "unavailable", "unavailable")
513514
cmd = "REQUESTED_VERSION={version}\n{check}".format(
514515
version=quote(requested_version),

0 commit comments

Comments
 (0)