[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

patch: Only add the required packages when running list2cds



Here is a small patch to make it possible to only add the required
packages (instead of the required, the suggested and the recommended
packages) when adding the packages mentioned in the task lists.

This saved 100 MB on the CD we are building based on our own task
list.  Please add in the next version of the debian-cd package.

Index: list2cds
===================================================================
RCS file: /var/lib/cvs/skolelinux/src/debian-cd/tools/list2cds,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -p -u -r1.3 -r1.4
--- list2cds    1 Dec 2001 12:06:50 -0000       1.3
+++ list2cds    2 Dec 2001 11:33:32 -0000       1.4
@@ -21,6 +21,7 @@ my $forcenonusoncd1 = $ENV{'FORCENONUSON
 my $local = $ENV{'LOCAL'} || 0;
 my $complete = $ENV{'COMPLETE'} || 0;
 my $exclude = $ENV{'EXCLUDE'} || "$list.exclude";
+my $norecommends = $ENV{'NORECOMMENDS'} || 0;

 my $apt = "$ENV{'BASEDIR'}/tools/apt-selection";
 my $adir = "$ENV{'APTTMP'}/$ENV{'CODENAME'}-$ENV{'ARCH'}";
@@ -194,7 +195,7 @@ while (defined($_=<LIST>)) {
            msg(3, "$_ has already been included.\n");
            next;
        }
-       add_package ($_, 1);
+       add_package ($_, ! $norecommends);
 }
 close LIST;



Reply to: