From 9c0ae8d9d2e93dc7ce824476be2ce426b601d7a1 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 22 Oct 2021 13:44:35 +0200 Subject: [PATCH] osbuild: enable download only mode Remove the constraint that either checkpoints or the output directory has to be supplied on the command line. Now that we have `--export` and on-demand building it is perfectly fine to supply neither an output directory nor checkpoints and implicitly no --export` which corresponds to a download only mode. --- osbuild/main_cli.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/osbuild/main_cli.py b/osbuild/main_cli.py index 469a9a8a..49c2d848 100644 --- a/osbuild/main_cli.py +++ b/osbuild/main_cli.py @@ -138,10 +138,6 @@ def osbuild_cli(): print("Need --output-directory for --export") return 1 - if not args.output_directory and not args.checkpoint: - print("No output directory or checkpoints specified, exited without building.") - return 0 - monitor_name = "NullMonitor" if args.json else "LogMonitor" monitor = osbuild.monitor.make(monitor_name, sys.stdout.fileno())