[Debconf-video-commits] r280 - fai-config/files/etc/apt/sources.list
holger at alioth.debian.org
holger at alioth.debian.org
Thu Feb 5 13:46:13 UTC 2009
Author: holger
Date: 2009-02-05 13:46:13 +0000 (Thu, 05 Feb 2009)
New Revision: 280
Modified:
fai-config/files/etc/apt/sources.list/postinst
Log:
hardcode mirror
Modified: fai-config/files/etc/apt/sources.list/postinst
===================================================================
--- fai-config/files/etc/apt/sources.list/postinst 2009-02-05 12:37:40 UTC (rev 279)
+++ fai-config/files/etc/apt/sources.list/postinst 2009-02-05 13:46:13 UTC (rev 280)
@@ -11,11 +11,14 @@
# distribution we are using
DISTRO=etch
+# hardcode mirror to use
+MIRROR=ftp.de.debian.org
+#
# either use local mirror or ftp.de.debian.org
-TMPFILE=`mktemp -p /tmp`
-if $( wget -q http://mirror/debian/dists/$DISTRO/Release.gpg -O $TMPFILE && file $TMPFILE | grep PGP > /dev/null ) ; then export MIRROR=mirror
-else export MIRROR=ftp.de.debian.org ; fi
-rm $TMPFILE
+#TMPFILE=`mktemp -p /tmp`
+#if $( wget -q http://mirror/debian/dists/$DISTRO/Release.gpg -O $TMPFILE && file $TMPFILE | grep PGP > /dev/null ) ; then export MIRROR=mirror
+#else export MIRROR=ftp.de.debian.org ; fi
+#rm $TMPFILE
# modify copied file
sed -i "s/#MIRROR#/$MIRROR/" $2
More information about the Debconf-video-commits
mailing list