Package: schroot
Version: 1.4.0-1
Severity: wishlist
Tags: patch

The attached patch adds support for whole-line comments (starting with "#") and 
empty lines to setup.d/20copyfiles.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.33-rc5-flatty-ocf-1-00255-g5b8834f
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages schroot depends on:
ii  libboost-filesystem1.40.0    1.40.0-6+b1 filesystem operations (portable pa
ii  libboost-program-options1.40 1.40.0-6+b1 program options library for C++
ii  libboost-regex1.40.0         1.40.0-6+b1 regular expression library for C++
ii  libboost-system1.40.0        1.40.0-6+b1 Operating system (e.g. diagnostics
ii  libc6                        2.10.2-2    GNU C Library: Shared libraries
ii  libgcc1                      1:4.4.2-9   GCC support library
ii  liblockdev1                  1.0.3-1.3   Run-time shared library for lockin
ii  libpam0g                     1.1.0-4     Pluggable Authentication Modules l
ii  libstdc++6                   4.4.2-9     The GNU Standard C++ Library v3
ii  libuuid1                     2.16.2-0    Universally Unique ID library
ii  schroot-common               1.4.0-1     common files for schroot

schroot recommends no packages.

Versions of packages schroot suggests:
pn  aufs-modules | unionfs-module <none>     (no description available)
ii  debootstrap                   1.0.20     Bootstrap a basic Debian system
ii  lvm2                          2.02.54-1  The Linux Logical Volume Manager
ii  unzip                         6.0-1      De-archiver for .zip files

-- no debconf information
diff --git a/schroot/setup.d/20copyfiles b/schroot/setup.d/20copyfiles
index 31da816..cf1217e 100755
--- a/schroot/setup.d/20copyfiles
+++ b/schroot/setup.d/20copyfiles
@@ -82,6 +82,9 @@ if [ $1 = "setup-start" ] || [ $1 = "setup-recover" ]; then
     if [ -n "$COPYFILES" ]; then
 	if [ -f "$COPYFILES" ]; then
 	    while read file; do
+		if echo "$file" | egrep -q '^(#|$)' ; then
+		    continue
+		fi
 		if echo "$file" | grep -q '^/'; then
 		    copy_file "$file" "${CHROOT_PATH}$file"
 		else

Reply via email to