osbuild: allow empty output dir

We wanted to force an empty output dir to avoid assembly stages using
previous output when creating their new one, and hence creating
dependencies between osbuild runs. We may still do that, but for now
let's remove the restriction as it seems rather arbitrary to protect
people from themselves to this extent.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-06-19 15:36:38 +02:00
parent 4b69d02dc8
commit 28fd21ba40

View file

@ -52,10 +52,6 @@ if __name__ == "__main__":
os.makedirs("/run/osbuild", exist_ok=True)
if args.output_dir and os.path.exists(args.output_dir) and len(os.listdir(args.output_dir)) != 0:
print("Error: output directory is not empty", file=sys.stderr)
sys.exit(1)
try:
run_interactive(args.pipeline_path, args.input_dir, args.output_dir)
except KeyboardInterrupt: