Bug#774752: debootstrap --no-resolve-deps : we may sort 'required' and 'base'
Hi,
Would the following patch help ?
Regards,
JH Chatenet
diff -Naur a/usr/sbin/debootstrap b/usr/sbin/debootstrap
--- a/usr/sbin/debootstrap 2015-01-07 23:34:30.439150608 +0000
+++ b/usr/sbin/debootstrap 2015-01-07 23:54:08.037001814 +0000
@@ -590,6 +590,8 @@
if [ "$baseX" != "" ]; then
info NEWBASE "Found additional base dependencies: %s" "$baseX"
fi
+ else
+ base=$(without "$base" "$required")
fi
all_debs="$required $base"
diff -Naur a/usr/share/debootstrap/scripts/sid b/usr/share/debootstrap/scripts/sid
--- a/usr/share/debootstrap/scripts/sid 2015-01-07 23:34:46.535238349 +0000
+++ b/usr/share/debootstrap/scripts/sid 2015-01-07 23:51:06.060094404 +0000
@@ -16,12 +16,12 @@
esac
work_out_debs () {
- required="$(get_debs Priority: required)"
+ required="$(get_debs Priority: required|tr ' ' '\n'|sort|uniq|tr '\n' ' ')"
if doing_variant - || doing_variant fakechroot; then
#required="$required $(get_debs Priority: important)"
# ^^ should be getting debconf here somehow maybe
- base="$(get_debs Priority: important)"
+ base="$(get_debs Priority: important|tr ' ' '\n'|sort|uniq|tr '\n' ' ')"
elif doing_variant buildd || doing_variant scratchbox; then
base="apt build-essential"
elif doing_variant minbase; then
Reply to: