summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap_debootstrap
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-10-17 11:22:34 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-10-17 11:24:27 +0200
commit28dba93085ee94c3a8cc3eb4145a3ce027c0e707 (patch)
treecc479bc0dd977a9c83c9203076f6d27ec9508e36 /scripts/build/bootstrap_debootstrap
parentd07cb888ee70d0836dc2b738c201308e405bc958 (diff)
downloadvyos-live-build-28dba93085ee94c3a8cc3eb4145a3ce027c0e707.tar.gz
vyos-live-build-28dba93085ee94c3a8cc3eb4145a3ce027c0e707.zip
Harmonize comments in python stubs.
Diffstat (limited to 'scripts/build/bootstrap_debootstrap')
-rwxr-xr-xscripts/build/bootstrap_debootstrap21
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/build/bootstrap_debootstrap b/scripts/build/bootstrap_debootstrap
index 963d9db75..07d2fb8b9 100755
--- a/scripts/build/bootstrap_debootstrap
+++ b/scripts/build/bootstrap_debootstrap
@@ -1,6 +1,6 @@
#!/usr/bin/python
-## live-build(7) - System Build Scripts
+## live-build(7) - Live Systems Build Components
## Copyright (C) 2006-2013 Daniel Baumann <mail@daniel-baumann.ch>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
@@ -18,10 +18,10 @@ import sys
# TODO:
-# - lockfile handling
-# - debootstrap-options from config
-# - use gettext for i18n
-# - take mirrors from config/archives/debian.{bootstrap,chroot}
+# * lockfile handling
+# * debootstrap-options from config
+# * use gettext for i18n
+# * take mirrors from config/archives/debian.{bootstrap,chroot}
def main():
## Parsing Arguments
@@ -114,7 +114,8 @@ def main():
if verbose:
print('I: Copying cache/packages.bootstrap/*.deb to chroot/var/cache/apt/archives/*.deb')
- # Note: copy instead of move to make cache survive incomplete build
+ # Notes:
+ # * copy instead of move to make cache survive incomplete build
os.makedirs('chroot/var/cache/apt/archives', exist_ok=True)
for package in glob.glob('cache/packages.bootstrap/*.deb'):
@@ -132,14 +133,16 @@ def main():
if verbose:
print('I: Copying chroot/var/cache/apt/archives/*.deb to cache/packages.bootstrap')
- # Note: remove first to keep cache minimal,
- # remove files instead of directory to work with symlinked directory
+ # Notes:
+ # * remove first to keep cache minimal,
+ # * remove files instead of directory to work with symlinked directory
for package in glob.glob('cache/packages.bootstrap/*.deb'):
os.remove(package)
os.makedirs('cache/packages.bootstrap', exist_ok=True)
- # Note: move instead of copy to keep stage minimal
+ # Notes:
+ # * move instead of copy to keep stage minimal
for package in glob.glob('chroot/var/cache/apt/archives/*.deb'):
shutil.move(package, 'cache/packages.bootstrap')