diff options
author | Kiel Christofferson <kiel@endpoint.com> | 2014-05-02 19:19:35 -0400 |
---|---|---|
committer | Kiel Christofferson <kiel@endpoint.com> | 2014-06-17 13:32:37 -0400 |
commit | 846e8a079578507f576f6cb9e2628cb8ff8ca138 (patch) | |
tree | 6db7b2ea6086a92124a961b01afb1592a26629e9 /components/source-includes | |
parent | e8cbbb09d378145d5467326de5e0f5144827eb38 (diff) | |
download | vyos-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/source-includes')
-rwxr-xr-x | components/source-includes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/source-includes b/components/source-includes index fe9684e92..85eca1482 100755 --- a/components/source-includes +++ b/components/source-includes @@ -84,13 +84,13 @@ def main(): if verbose: print('I: Copying config/includes to source') - cpio = subprocess.call('cd config/includes && find . | cpio -dmpu --no-preserve-owner ../../source', shell=True) + cpio = subprocess.check_call('cd config/includes && find . | cpio -dmpu --no-preserve-owner ../../source', shell=True) if glob.glob('config/includes.source/*') or glob.glob('config/includes.source/.*'): if verbose: print('I: Copying config/includes.source to source') - cpio = subprocess.call('cd config/includes.source && find . | cpio -dmpu --no-preserve-owner ../../source', shell=True) + cpio = subprocess.check_call('cd config/includes.source && find . | cpio -dmpu --no-preserve-owner ../../source', shell=True) # stagefile os.makedirs('.build', exist_ok=True) |