[Debian-NP-Commits] r220 - people/vagrant/simple-cdd

Vagrant Cascadian debian-np-devel@lists.alioth.debian.org
Sun, 21 Nov 2004 11:15:00 -0700


Author: vagrant-guest
Date: Sun Nov 21 11:14:41 2004
New Revision: 220

Removed:
   people/vagrant/simple-cdd/debpartial-mirror.conf
Modified:
   people/vagrant/simple-cdd/CONF.sh
   people/vagrant/simple-cdd/build-simple-cdd
Log:
generate debpartial-mirror.conf on the fly


Modified: people/vagrant/simple-cdd/CONF.sh
==============================================================================
--- people/vagrant/simple-cdd/CONF.sh	(original)
+++ people/vagrant/simple-cdd/CONF.sh	Sun Nov 21 11:14:41 2004
@@ -295,7 +295,6 @@
 export APTTMP=$simple_cdd_path/tmp/apt/
 export CONTRIB=0
 export MAXCDS=1
-# TASK should point to same file as include-task in debpartial-mirror.conf
 export TASK=$simple_cdd_path/simple-cdd.task
 export INSTALLER_CD=2
 # increase the size limit if debian-cd tries to make more CDs than you

Modified: people/vagrant/simple-cdd/build-simple-cdd
==============================================================================
--- people/vagrant/simple-cdd/build-simple-cdd	(original)
+++ people/vagrant/simple-cdd/build-simple-cdd	Sun Nov 21 11:14:41 2004
@@ -38,8 +38,35 @@
 
 debpartial_conf=debpartial-mirror.conf
 cp -f $debpartial_conf $debpartial_conf.bak
-perl -pi -e"s,^local_directory=.*,local_directory=$MIRROR,g" $debpartial_conf
-perl -pi -e"s,^include-task=.*,include-task=$TASK,g" $debpartial_conf
+
+# generate debpartial-mirror.conf
+
+echo [mirror] > $debpartial_conf
+echo server=http://ftp.us.debian.org/debian/ >> $debpartial_conf
+
+echo local_directory=$MIRROR >> $debpartial_conf
+
+# TODO use $CODENAME instead of sid.  sarge is not yet ready, though.
+echo files=README doc/ tools/ indices/ dists/sid/main/installer-i386/current/ >> $debpartial_conf
+
+echo get_suggests=false >> $debpartial_conf
+
+echo get_recomends=false >> $debpartial_conf
+
+echo get_provides=false >> $debpartial_conf
+
+echo archs=$ARCH >> $debpartial_conf
+
+echo [$CODENAME] >> $debpartial_conf
+
+echo filter='main:*:standard main:*:required main:*:important main/debian-installer:*:*' >> $debpartial_conf
+
+echo include-task=$TASK >> $debpartial_conf
+
+echo done
+
+exit 1
+
 # generate the mirror
 # patched debpartial-mirror for cleaner output...
 ./patched-debpartial-mirror -c debpartial-mirror.conf