summaryrefslogtreecommitdiff
path: root/components/bootstrap-includes
diff options
context:
space:
mode:
authorKiel Christofferson <kiel@endpoint.com>2014-05-02 19:19:35 -0400
committerKiel Christofferson <kiel@endpoint.com>2014-06-17 13:32:37 -0400
commit846e8a079578507f576f6cb9e2628cb8ff8ca138 (patch)
tree6db7b2ea6086a92124a961b01afb1592a26629e9 /components/bootstrap-includes
parente8cbbb09d378145d5467326de5e0f5144827eb38 (diff)
downloadvyos-live-build-846e8a079578507f576f6cb9e2628cb8ff8ca138.tar.gz
vyos-live-build-846e8a079578507f576f6cb9e2628cb8ff8ca138.zip
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.
Diffstat (limited to 'components/bootstrap-includes')
-rwxr-xr-xcomponents/bootstrap-includes4
1 files changed, 2 insertions, 2 deletions
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)