From aa908feb928187ae4adb7f5b6fe3a17ad0eb18a2 Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Thu, 14 Oct 2021 16:09:09 -0700 Subject: [PATCH] release_collection.py - Add --skip-check option. --- README.md | 3 +++ release_collection.py | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 441378e4..1bf19d10 100644 --- a/README.md +++ b/README.md @@ -474,6 +474,9 @@ will publish the collection, waiting until it is completed. until the publishing is completed. Use `--no-wait` if you do not want to wait, and instead will check the import status in Galaxy. * `--skip-git` - boolean - If set to `true`, use local source. By default, `false`. +* `--skip-check` - boolean - If set to `true`, check using galaxy-importer is + skipped. By default, `false`. +rue when skip check with galaxy-importer * `--debug` - boolean - By default, the script will only output informational messages. Use `--debug` to see the details. * `--rpm` - string - Specifies the rpm file for the input collection. When --rpm diff --git a/release_collection.py b/release_collection.py index 45354e74..ac7d2521 100755 --- a/release_collection.py +++ b/release_collection.py @@ -584,6 +584,12 @@ def main(): action="store_true", help="True when work with local src.", ) + parser.add_argument( + "--skip-check", + default=False, + action="store_true", + help="True when skip check with galaxy-importer.", + ) args = parser.parse_args() if args.debug: @@ -620,7 +626,10 @@ def main(): galaxy = process_rpm(args, galaxy, coll_rel) else: update_collection(args, galaxy, coll_rel) - check_collection(args, galaxy) + if not args.skip_check: + check_collection(args, galaxy) + else: + logging.debug("check_collection is skipped.") if args.publish: publish_collection(args, galaxy) logging.info("Done.")