Package: vserver-debiantools
Version: 0.2.9
Severity: wishlist
Tags: patch

Hi,

the script newvserver is creating /etc/apt/sources.list with non-US
part of the Debian archive. non-US archive was deprecated before
release of Sarge, so the script should not add it anymore. Installing
Etch as a guest produces few unnecessary messages from APT saying that
Packages.gz / Sources.gz for non-US are not available.

I suggest to remove the following two lines from the script:

deb http://non-us.debian.org/debian-non-US $DIST/non-US main contrib non-free
deb-src http://non-us.debian.org/debian-non-US $DIST/non-US main contrib non-fr


Next, the /etc/apt/sources.list is by default adding main, contrib and
non-free sections. Since Sarge the Debian installer is not adding
contrib and non-free for new installations by default.
My suggestion is to also add only the main section in newvserver script.

Patch for both issues is attached.

-- 
Miroslav Kure
--- newvserver.old      2006-07-18 00:54:00.000000000 +0200
+++ newvserver  2006-08-18 22:42:38.000000000 +0200
@@ -409,13 +409,10 @@
 
 # Make it so that apt and friends work
 cat << EOF > "$VROOTDIR/$VHOST/etc/apt/sources.list"
-deb $MIRROR/ $DIST main non-free contrib
-deb-src $MIRROR/ $DIST main non-free contrib
+deb $MIRROR/ $DIST main
+deb-src $MIRROR/ $DIST main
 
-deb http://non-us.debian.org/debian-non-US $DIST/non-US main contrib non-free
-deb-src http://non-us.debian.org/debian-non-US $DIST/non-US main contrib 
non-free
-
-deb http://security.debian.org $DIST/updates main contrib non-free
+deb http://security.debian.org $DIST/updates main
 
 EOF
 

Reply via email to