aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
authordancer <dancer>2001-08-23 15:59:14 +0000
committerdancer <dancer>2001-08-23 15:59:14 +0000
commit658b1f7bc4e72e1008ce849c2d0b20820bdf8689 (patch)
tree2da6a365ea349e45bdce68d4af1c0c444fcdedef /pbuilder-updatebuildenv
parent7a241364625f0c312db18c0cd8d71daca62683b9 (diff)
downloadpbuilder-658b1f7bc4e72e1008ce849c2d0b20820bdf8689.tar
pbuilder-658b1f7bc4e72e1008ce849c2d0b20820bdf8689.tar.gz
updated
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv11
1 files changed, 6 insertions, 5 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index 6b347de..a5f8d07 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -2,12 +2,13 @@
export LANG=C
export LC_ALL=C
-PACKAGENAME=$1
-
+DISTRIBUTION=$1
+test -z "$DISTRIBUTION" && DISTRIBUTION=woody
. /etc/pbuilderrc
-
CHROOTEXEC="chroot $BUILDPLACE "
+echo "Upgrading for distribution $DISTRIBUTION"
+
cd $MYREPOSITORY
echo Initializing repository
dpkg-scanpackages . . | gzip > Packages.gz
@@ -29,8 +30,8 @@ echo Installing apt-lines
cat > $BUILDPLACE/etc/apt/sources.list << EOF
deb $MYREPOSITORYHTTP ./
deb-src $MYREPOSITORYHTTP ./
-deb http://www.jp.debian.org/debian unstable main contrib non-free
-deb-src http://www.jp.debian.org/debian unstable main contrib non-free
+deb http://www.jp.debian.org/debian $DISTRIBUTION main contrib non-free
+deb-src http://www.jp.debian.org/debian $DISTRIBUTION main contrib non-free
EOF
echo Refreshing the base.tgz