summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap_debootstrap
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-07-01 16:24:22 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-07-01 16:27:12 +0200
commitb77349b8ce2a9b6b2789424f189379e01ed63551 (patch)
tree74480db00617b2f8a57065089f02bde03191bdda /scripts/build/bootstrap_debootstrap
parenteab1da72edf4d4ad40ef5b6b67bca5930ad80209 (diff)
downloadvyos-live-build-b77349b8ce2a9b6b2789424f189379e01ed63551.tar.gz
vyos-live-build-b77349b8ce2a9b6b2789424f189379e01ed63551.zip
Moving caching out of bootstrap_{c,}debootstrap to own helper for future unification with chroot caches helper.
Diffstat (limited to 'scripts/build/bootstrap_debootstrap')
-rwxr-xr-xscripts/build/bootstrap_debootstrap18
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()