Skip to content

Commit 6b68a03

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

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
@@ -547,6 +547,7 @@ def getPackageList(packages, specs, configDir, preferSystem, noSystem,
547547
# The version is required for all specs. What we put there will
548548
# influence the package's hash, so allow the user to override it.
549549
replacement.setdefault("version", requested_version)
550+
allowSystemPackageUpload = spec.get("allow_system_package_upload", False)
550551
spec = replacement
551552
# Allows generalising the version based on the actual key provided
552553
spec["version"] = spec["version"].replace("%(key)s", key)
@@ -555,7 +556,7 @@ def getPackageList(packages, specs, configDir, preferSystem, noSystem,
555556
# the package. If not, aliBuild will still "build" it, but it's
556557
# basically instantaneous, so report to the user that we're taking
557558
# it from the system.
558-
if recipe:
559+
if allowSystemPackageUpload:
559560
ownPackages.add(spec["package"])
560561
else:
561562
systemPackages.add(spec["package"])

0 commit comments

Comments
 (0)