summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAnthony Towns <ajt@debian.org>2007-12-07 09:23:29 (GMT)
committerAnthony Towns <ajt@debian.org>2007-12-07 09:23:29 (GMT)
commit9e367bef2b53694c417a7c7d96bbde347aa8b7fd (patch)
tree0e6f924993f6ca65f51ee394f587629f608cf3bc /scripts
parent9fb668b43be46493044428e3c310d37649b4506f (diff)
downloaddebootstrap-9e367bef2b53694c417a7c7d96bbde347aa8b7fd.zip
debootstrap-9e367bef2b53694c417a7c7d96bbde347aa8b7fd.tar.gz
debootstrap-9e367bef2b53694c417a7c7d96bbde347aa8b7fd.tar.bz2
* Add minbase variant for the sid script that only install apt (and
its dependencies) instead of all of base. (Closes: Bug#351912, Bug#452654) * Make --second-stage not bother recalculating required and base when it's not needed. r50373
Diffstat (limited to 'scripts')
-rw-r--r--scripts/debian/sid18
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/debian/sid b/scripts/debian/sid
index bbf2d30..d301f98 100644
--- a/scripts/debian/sid
+++ b/scripts/debian/sid
@@ -9,20 +9,20 @@ esac
mirror_style release
download_style apt
finddebs_style from-indices
-variants - buildd fakechroot
+variants - buildd fakechroot minbase
if doing_variant fakechroot; then
test "$FAKECHROOT" = "true" || error 1 FAKECHROOTREQ "This variant requires fakechroot environment to be started"
fi
-work_out_debs () {
- LIBC=libc6
- if [ "$ARCH" = "alpha" ] || [ "$ARCH" = "ia64" ]; then
- LIBC="libc6.1"
- elif [ "$ARCH" = "hurd-i386" ]; then
- LIBC="libc0.3"
- fi
+LIBC=libc6
+if [ "$ARCH" = "alpha" ] || [ "$ARCH" = "ia64" ]; then
+ LIBC="libc6.1"
+elif [ "$ARCH" = "hurd-i386" ]; then
+ LIBC="libc0.3"
+fi
+work_out_debs () {
required="$(get_debs Priority: required)"
if doing_variant - || doing_variant fakechroot; then
@@ -31,6 +31,8 @@ work_out_debs () {
base="$(get_debs Priority: important)"
elif doing_variant buildd; then
base="$(get_debs Build-Essential: yes)"
+ elif doing_variant minbase; then
+ base="apt"
fi
if doing_variant fakechroot; then