aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
authordancer <dancer>2001-08-24 06:09:39 +0000
committerdancer <dancer>2001-08-24 06:09:39 +0000
commit2ca331979b002a55686e21d12938699a74122546 (patch)
tree17505bca202b1f4330bfa4af14b64b282ccd24b0 /pbuilder-updatebuildenv
parente39a1cc924709a92bee3dd51bb46e5052afc891c (diff)
downloadpbuilder-2ca331979b002a55686e21d12938699a74122546.tar
pbuilder-2ca331979b002a55686e21d12938699a74122546.tar.gz
updating docs, and fixing local data, and removing the feature to have a local mirror sites.
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv23
1 files changed, 12 insertions, 11 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index a5f8d07..ef578b3 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -2,17 +2,18 @@
export LANG=C
export LC_ALL=C
+#this option is optional
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
-dpkg-scansources . . | gzip > Sources.gz
+#cd $MYREPOSITORY
+#echo Initializing repository
+#dpkg-scanpackages . . | gzip > Packages.gz
+#dpkg-scansources . . | gzip > Sources.gz
echo cleaning the build env
rm -rf $BUILDPLACE
@@ -26,13 +27,13 @@ for a in passwd hosts hostname resolv.conf; do
cp /etc/$a $BUILDPLACE/etc/$a;
done
-echo Installing apt-lines
-cat > $BUILDPLACE/etc/apt/sources.list << EOF
-deb $MYREPOSITORYHTTP ./
-deb-src $MYREPOSITORYHTTP ./
-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
+if [ -n "$DISTRIBUTION" ]; then
+ echo Installing apt-lines
+ cat > $BUILDPLACE/etc/apt/sources.list << EOF
+deb $MIRRORSITE $DISTRIBUTION main contrib non-free
+deb-src $MIRRORSITE debian $DISTRIBUTION main contrib non-free
EOF
+fi
echo Refreshing the base.tgz
$CHROOTEXEC /usr/bin/apt-get update