[Fai-commit] r5299 - people/michael/experimental/patches

mt at alioth.debian.org mt at alioth.debian.org
Thu Mar 26 17:02:03 UTC 2009


Author: mt
Date: 2009-03-26 17:02:02 +0000 (Thu, 26 Mar 2009)
New Revision: 5299

Modified:
   people/michael/experimental/patches/bugfix-479537
Log:
this one really includes the patch, not only the NEWS entry ...


Modified: people/michael/experimental/patches/bugfix-479537
===================================================================
--- people/michael/experimental/patches/bugfix-479537	2009-03-26 16:58:32 UTC (rev 5298)
+++ people/michael/experimental/patches/bugfix-479537	2009-03-26 17:02:02 UTC (rev 5299)
@@ -20,3 +20,35 @@
  fai (3.2.8) unstable; urgency=low
  
    - new partition tool setup-storage added
+Index: trunk/bin/install_packages
+===================================================================
+--- trunk.orig/bin/install_packages
++++ trunk/bin/install_packages	
+@@ -272,13 +272,21 @@
+       # by default no classes are listed after this command so doit
+       $doit = 1;
+       if ($cllist) {
+-	# no classes specified after PACKAGES command
++        # no classes specified after PACKAGES command
+         # so add all packages listed
+-	# use packages on for a list of classes
+-	$doit = 0; # assume no class is defined
+-	@oclasses = split(/\s+/,$cllist);
+-	# if a listed class is defined, add the packaes, otherwise skip these packages
+-	foreach (@oclasses) { exists $classisdef{$_} and $doit = 1;}
++        # use packages on for a list of classes
++        $doit = 0; # assume no class is defined
++        @oclasses = split(/\s+/,$cllist);
++        # if all listed class are defined, add the packaes, otherwise skip these packages
++        foreach (@oclasses) {
++          if (/^!/) {
++            s/^!//;
++            not exists $classisdef{$_} and $doit = 1 or $doit = 0 or last;
++          }
++          else {
++            exists $classisdef{$_} and $doit = 1 or $doit = 0 or last;
++          }
++        }
+       }
+       next;
+     }




More information about the Fai-commit mailing list