From 846e8a079578507f576f6cb9e2628cb8ff8ca138 Mon Sep 17 00:00:00 2001 From: Kiel Christofferson Date: Fri, 2 May 2014 19:19:35 -0400 Subject: Replace subprocess.call() with subprocess.check_call(). Using check_call(), a non-zero return value from the subprocess will cause the desired behavior of an aborted build with a stack trace. --- components/bootstrap-includes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/bootstrap-includes') diff --git a/components/bootstrap-includes b/components/bootstrap-includes index 8d10807b4..2ce677282 100755 --- a/components/bootstrap-includes +++ b/components/bootstrap-includes @@ -83,13 +83,13 @@ def main(): if verbose: print('I: Copying config/includes to chroot') - cpio = subprocess.call('cd config/includes && find . | cpio -dmpu --no-preserve-owner ../../chroot', shell=True) + cpio = subprocess.check_call('cd config/includes && find . | cpio -dmpu --no-preserve-owner ../../chroot', shell=True) if glob.glob('config/includes.bootstrap/*') or glob.glob('config/includes.bootstrap/.*'): if verbose: print('I: Copying config/includes.bootstrap to chroot') - cpio = subprocess.call('cd config/includes.bootstrap && find . | cpio -dmpu --no-preserve-owner ../../chroot', shell=True) + cpio = subprocess.check_call('cd config/includes.bootstrap && find . | cpio -dmpu --no-preserve-owner ../../chroot', shell=True) # stagefile os.makedirs('.build', exist_ok=True) -- cgit v1.2.3