Skip to content

Commit

Permalink
Post-process --annotate only when it is present
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoWilken committed Jan 18, 2024
1 parent fc5b48f commit f614f76
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions alibuild_helpers/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,7 @@ def finaliseArgs(args, parser):
if args.docker and not args.dockerImage:
args.dockerImage = "registry.cern.ch/alisw/%s-builder" % args.architecture.split("_")[0]

if args.action in ("build", "doctor"):
args.configDir = args.configDir

if args.action == "build":
for comment_assignment in args.annotate:
if "=" not in comment_assignment:
parser.error("--annotate takes arguments of the form PACKAGE=COMMENT")
Expand All @@ -452,6 +450,9 @@ def finaliseArgs(args, parser):
in (assignment.partition("=") for assignment in args.annotate)
}

if args.action in ("build", "doctor"):
args.configDir = args.configDir

# On selected platforms, caching is active by default
if args.architecture in S3_SUPPORTED_ARCHS and not args.preferSystem and not args.no_remote_store:
args.noSystem = True
Expand Down

0 comments on commit f614f76

Please sign in to comment.