summaryrefslogtreecommitdiff
path: root/components/chroot-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/chroot-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/chroot-includes')
-rwxr-xr-xcomponents/chroot-includes4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/chroot-includes b/components/chroot-includes
index 19c519af8..a961db6cf 100755
--- a/components/chroot-includes
+++ b/components/chroot-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.chroot/*') or glob.glob('config/includes.chroot/.*'):
if verbose:
print('I: Copying config/includes.chroot to chroot')
- cpio = subprocess.call('cd config/includes.chroot && find . | cpio -dmpu --no-preserve-owner ../../chroot', shell=True)
+ cpio = subprocess.check_call('cd config/includes.chroot && find . | cpio -dmpu --no-preserve-owner ../../chroot', shell=True)
# stagefile
os.makedirs('.build', exist_ok=True)