From b77349b8ce2a9b6b2789424f189379e01ed63551 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 1 Jul 2013 16:24:22 +0200 Subject: Moving caching out of bootstrap_{c,}debootstrap to own helper for future unification with chroot caches helper. --- scripts/build/bootstrap_cdebootstrap | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'scripts/build/bootstrap_cdebootstrap') diff --git a/scripts/build/bootstrap_cdebootstrap b/scripts/build/bootstrap_cdebootstrap index ea72ccfd5..7df180fab 100755 --- a/scripts/build/bootstrap_cdebootstrap +++ b/scripts/build/bootstrap_cdebootstrap @@ -104,14 +104,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: @@ -154,16 +146,6 @@ def main(): cdebootstrap = subprocess.call('/usr/bin/cdebootstrap ' + cdebootstrap_options, shell=True) - # 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() -- cgit v1.2.3