From 3eece1b6edc609f5562b731afb1b156bf76c5719 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Sun, 2 Dec 2018 11:53:35 -0800 Subject: [PATCH] scripts/COPY: don't use check_call subprocess.check_call() raises an execption and produces an ugly Python traceback on the console. It's not really needed. The cp command and Makefile already give error output. Instead we call sys.exit() with the exit status of the cp command. --- scripts/COPY | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/COPY b/scripts/COPY index a5cd2c9..03fe0a0 100755 --- a/scripts/COPY +++ b/scripts/COPY @@ -16,7 +16,7 @@ def main(): command = ["cp"] + sys.argv[1:-1] + [chroot_target] - subprocess.check_call(command) + sys.exit(subprocess.call(command)) if __name__ == "__main__":