Package: debootstrap
Version: 0.3.1.4
Severity: normal

It seems that supplying the --include option to debootstrap with
packages which are already in the base set of packages causes those
packages to be *excluded* from installation. This also happens if a
package is listed twice on the include line.

The bug boils down to the 'without' function, which will in fact not
only exclude those words listed in the second argument, but also all
words that are duplicated in the first argument.

Here is a trivial fix to the problem, but you might prefer an
alternative solution.

Locating this bug caused moderate amounts of hair-pulling in this end.

Patch:

Fix without function to not remove words that are duplicated in the
first argument. This also fixes supplying --include duplicate packages
or packages listed in the base set.

Signed-off-by: Nuutti Kotivuori <[EMAIL PROTECTED]>

Index: debootstrap-0.3.1.4/functions
===================================================================
--- debootstrap-0.3.1.4.orig/functions
+++ debootstrap-0.3.1.4/functions
@@ -892,7 +892,7 @@
 
 without () {
   # usage:  without "a b c" "a d" -> "b" "c"
-  echo $(echo $1 $2 $2 | tr ' ' '\n' | sort | uniq -u)
+  echo $(echo $(echo $1 | tr ' ' '\n' | sort | uniq) $2 $2 | tr ' ' '\n' | 
sort | uniq -u)
 }
 
 repeat () {


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-aka-1
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages debootstrap depends on:
ii  binutils                      2.15-7     The GNU assembler, linker and bina
ii  wget                          1.10-2     retrieves files from the web

debootstrap recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to