diff options
Diffstat (limited to 'scripts/build/bootstrap_debootstrap')
-rwxr-xr-x | scripts/build/bootstrap_debootstrap | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/build/bootstrap_debootstrap b/scripts/build/bootstrap_debootstrap index 482e23f67..a9fa06ef6 100755 --- a/scripts/build/bootstrap_debootstrap +++ b/scripts/build/bootstrap_debootstrap @@ -109,14 +109,6 @@ def main(): print('I: use \'lb clean\' to clean up a previously incomplete build') sys.exit(1) - # stage cache - elif os.path.exists('cache/bootstrap'): - if verbose: - print('I: Copying cache/bootstrap to chroot') - - # Note: copy instead of move to make cache survive incomplete build - #shutil.copytree('cache/bootstrap', 'chroot') # FIXME: copytree() doesn't work with device files :( - cp = subprocess.call('cp -a cache/bootstrap chroot', shell=True) # packages cache elif glob.glob('cache/packages.bootstrap/*.deb'): if verbose: @@ -151,16 +143,6 @@ def main(): for package in glob.glob('chroot/var/cache/apt/archives/*.deb'): shutil.move(package, 'cache/packages.bootstrap') - # stage cache - if (os.path.exists('chroot')) and (not os.path.exists('cache/bootstrap')): - if verbose: - print('I: Copying chroot to cache/bootstrap') - - # Note: copy instead of move to keep stage - #shutil.copytree('chroot', 'cache/bootstrap') # FIXME: copytree() doesn't work with device files :( - os.makedirs('cache', exist_ok=True) - cp = subprocess.call('cp -a chroot cache/bootstrap', shell=True) - ## stagefile os.makedirs('.build', exist_ok=True) open('.build/bootstrap', 'w').close() |