From f614f761cd691063a4db9f7ea23464ceba16f3e3 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Thu, 18 Jan 2024 15:33:07 +0100 Subject: [PATCH] Post-process --annotate only when it is present --- alibuild_helpers/args.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/alibuild_helpers/args.py b/alibuild_helpers/args.py index 3361f1b7..f170e4a2 100644 --- a/alibuild_helpers/args.py +++ b/alibuild_helpers/args.py @@ -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") @@ -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