From 28fd21ba4009d07c40b97663008a6405abf45f79 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 19 Jun 2019 15:36:38 +0200 Subject: [PATCH] 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 --- osbuild | 4 ---- 1 file changed, 4 deletions(-) diff --git a/osbuild b/osbuild index 1d5098fb..3c0c2d2f 100755 --- a/osbuild +++ b/osbuild @@ -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: