diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-10-17 11:22:34 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-10-17 11:24:27 +0200 |
commit | 28dba93085ee94c3a8cc3eb4145a3ce027c0e707 (patch) | |
tree | cc479bc0dd977a9c83c9203076f6d27ec9508e36 /scripts/build/bootstrap_cdebootstrap | |
parent | d07cb888ee70d0836dc2b738c201308e405bc958 (diff) | |
download | vyos-live-build-28dba93085ee94c3a8cc3eb4145a3ce027c0e707.tar.gz vyos-live-build-28dba93085ee94c3a8cc3eb4145a3ce027c0e707.zip |
Harmonize comments in python stubs.
Diffstat (limited to 'scripts/build/bootstrap_cdebootstrap')
-rwxr-xr-x | scripts/build/bootstrap_cdebootstrap | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/scripts/build/bootstrap_cdebootstrap b/scripts/build/bootstrap_cdebootstrap index c5e1641a0..62ee7bef9 100755 --- a/scripts/build/bootstrap_cdebootstrap +++ b/scripts/build/bootstrap_cdebootstrap @@ -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. @@ -17,11 +17,11 @@ import subprocess import sys -# TODO: -# - lockfile handling -# - cdebootstrap-options from config -# - use gettext for i18n -# - take mirrors from config/archives/debian.{bootstrap,chroot} +# TODOs: +# * lockfile handling +# * cdebootstrap-options from config +# * use gettext for i18n +# * take mirrors from config/archives/debian.{bootstrap,chroot} def main(): ## Parsing Arguments @@ -109,7 +109,8 @@ def main(): if verbose: print('I: Copying cache/packages.bootstrap/*.deb to chroot/var/cache/bootstrap/*.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/bootstrap', exist_ok=True) for package in glob.glob('cache/packages.bootstrap/*.deb'): @@ -119,9 +120,10 @@ def main(): if verbose: print('I: Calling \'/usr/bin/debootstrap --download-only ' + cdebootstrap_options + '\'') - # Note: calling cdebootstrap twice: - # - to use already downloaded /var/cache/bootstrap/*.deb on incomplete builds - # - to use /var/cache/boottrap/*.deb for debian-installer + # Notes: + # * calling cdebootstrap twice: + # - to use already downloaded /var/cache/bootstrap/*.deb on incomplete builds + # - to use /var/cache/boottrap/*.deb for debian-installer cdebootstrap = subprocess.call('/usr/bin/cdebootstrap --download-only ' + cdebootstrap_options, shell=True) # package cache @@ -129,8 +131,9 @@ def main(): if verbose: print('I: Copying chroot/var/cache/bootstrap/*.deb to cache/packages.bootstrap') - # Notes: - 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) |