Skip to content

Commit

Permalink
Avoid accidentally overriding the disable packages (#748)
Browse files Browse the repository at this point in the history
* Avoid overriding the disable packages

* Create a new list not using .copy()

`list.copy()` doesn't exist on python2.

Co-authored-by: Timo Wilken <[email protected]>
  • Loading branch information
ktf and TimoWilken authored Feb 10, 2022
1 parent 9ac1a3e commit cc2ff81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alibuild_helpers/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def getPackageList(packages, specs, configDir, preferSystem, noSystem,
else:
disable.append(spec["package"])

spec["disabled"] = disable
spec["disabled"] = list(disable)
if spec["package"] in disable:
continue

Expand Down

0 comments on commit cc2ff81

Please sign in to comment.