Package: debootstrap
Version: 0.3.3
Severity: normal
Tags: patch

The Ubuntu archive was recently ported over to Launchpad, which to start
with generated a Components line in dists/dapper/Release like this:

  Components: restricted main multiverse universe

This has since been changed to the more conventional "main restricted
universe multiverse" ordering, because it exposed a bug in debootstrap,
namely that if you used 'debootstrap --components=main,restricted' then
debootstrap only looked at restricted to find Priority: required and
Priority: important packages, because it only looked at the first
selected component in Release. The following patch fixes get_debs to
look at all selected components rather than just the first.

diff -Nru /tmp/ozb1ygdMFU/debootstrap-0.3.3.0ubuntu1/functions 
/tmp/1rHQOGDIEZ/debootstrap-0.3.3.0ubuntu2/functions
--- /tmp/ozb1ygdMFU/debootstrap-0.3.3.0ubuntu1/functions        2005-10-29 
10:31:48.000000000 +0100
+++ /tmp/1rHQOGDIEZ/debootstrap-0.3.3.0ubuntu2/functions        2006-02-08 
10:00:46.000000000 +0000
@@ -667,12 +667,13 @@
 
 get_debs () {
   local m1=${MIRRORS%% *}
-  local c="${COMPONENTS%% *}"
-  local path="dists/$SUITE/$c/binary-$ARCH/Packages"
-  local pkgdest="$TARGET/$($DLDEST pkg $SUITE $c $ARCH $m1 $path)"
   local field="$1"
   shift
-  echo $("$PKGDETAILS" FIELD "$field" $m1 "$pkgdest" "$@" | sed 's/ .*//')
+  echo $(for c in $COMPONENTS; do
+    local path="dists/$SUITE/$c/binary-$ARCH/Packages"
+    local pkgdest="$TARGET/$($DLDEST pkg $SUITE $c $ARCH $m1 $path)"
+    "$PKGDETAILS" FIELD "$field" $m1 "$pkgdest" "$@"
+  done | sed 's/ .*//')
 }
 
 ################################################################ extraction

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]


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

Reply via email to