From 7a68170483caeafd094f8f6bd21d501ed5c4b9bc Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sep 20 2017 21:32:13 +0000 Subject: Explicitly select koji provile in build-function.sh This allows to run block_retired.py out of the box on regular systems without the special compose_koji profile. Signed-off-by: Till Maas --- diff --git a/scripts/block_retired.py b/scripts/block_retired.py index f0ee8d3..7ed805f 100755 --- a/scripts/block_retired.py +++ b/scripts/block_retired.py @@ -303,8 +303,8 @@ if __name__ == "__main__": "--staging", default=False, action="store_true", help="Talk to staging services (pkgdb/pdc), instead of production") parser.add_argument( - "-p", "--profile", default="compose_koji", - help="Koji profile to use, default: %(default)s") + "-p", "--profile", default="koji", + help="Koji profile to use, default: %(default)s (ignored with --staging)") parser.add_argument( "--namespace", default=DEFAULT_NS, help="pkgdb/pdc namespace to use, default: %(default)s") diff --git a/scripts/build-functions.sh b/scripts/build-functions.sh index b0bb58f..10f130e 100644 --- a/scripts/build-functions.sh +++ b/scripts/build-functions.sh @@ -74,7 +74,7 @@ send_fedmsg "${fedmsg_json_start}" ${DIST} start if [[ -z "${ARCH}" ]]; then log "blocking retired packages" if [ "$ENVIRONMENT" == "production" ]; then - ./scripts/block_retired.py + ./scripts/block_retired.py --profile compose_koji else ./scripts/block_retired.py --staging fi