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.
This commit is contained in:
Christian Kellner 2021-10-22 13:44:35 +02:00 committed by Tom Gundersen
parent 29f2a68eeb
commit 9c0ae8d9d2

View file

@ -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())