From 7b9b9d8c5d450f00c686d059ebe76e7d313a4e41 Mon Sep 17 00:00:00 2001 From: jonas Date: Wed, 2 Aug 2006 21:15:19 +0000 Subject: Pass --allow-unauthenticated only to recent releases of apt-get. git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/homebase@26 8f53b18a-e215-0410-8885-9f593d34873e --- 1_makerootfs.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/1_makerootfs.sh b/1_makerootfs.sh index 02f5e0a..82291b4 100755 --- a/1_makerootfs.sh +++ b/1_makerootfs.sh @@ -77,7 +77,14 @@ case "$debootstrap" in ;; cdebootstrap) ./chroot.sh temp apt-get update - ./chroot.sh temp apt-get -y --allow-unauthenticated install aptitude + case "$suite" in + etch|sid) + ./chroot.sh temp apt-get -y --allow-unauthenticated install aptitude + ;; + *) + ./chroot.sh temp apt-get -y install aptitude + ;; + esac ./chroot.sh temp aptitude -y purge cdebootstrap-helper-diverts # Hmm - this next one seems like a bug! rm -rf "$targettemp/var/cache/debootstrap" -- cgit v1.2.3