[Fai-commit] r4823 - people/faiguy/bugfixes/common/bin
meissner-guest at alioth.debian.org
meissner-guest at alioth.debian.org
Fri Dec 14 14:57:32 UTC 2007
Author: meissner-guest
Date: 2007-12-14 14:57:32 +0000 (Fri, 14 Dec 2007)
New Revision: 4823
Modified:
people/faiguy/bugfixes/common/bin/install_packages
Log:
shrink fix to one single line
Modified: people/faiguy/bugfixes/common/bin/install_packages
===================================================================
--- people/faiguy/bugfixes/common/bin/install_packages 2007-12-14 14:31:01 UTC (rev 4822)
+++ people/faiguy/bugfixes/common/bin/install_packages 2007-12-14 14:57:32 UTC (rev 4823)
@@ -256,7 +256,8 @@
warn "$0: read config file $file\n" if $verbose;
while (<FILE>) {
- next if /^#.*$/; # skip comments
+ next if /^#/; # skip comments
+ s/#.*$//; # delete comments
next if /^\s*$/; # skip empty lines
chomp;
/^PRELOAD\s+(\S+)\s+(\S+)/ and push(@preloadlist, [$1,$2]),next;
@@ -274,8 +275,7 @@
$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; }
- $types{$type}=1 if $doit; # remember which types are used in package_config
+ foreach (@oclasses) { exists $classisdef{$_} and $doit = 1;}
}
next;
}
@@ -284,6 +284,7 @@
warn "WARNING: Uppercase character found in package name in line $_\n" if $_ =~ /[A-Z]/;
warn "ERROR: PACKAGES .. line missing in $file\n",next unless $type;
push @{$list{$type}}, split if $doit;
+ $types{$type}=1 if $doit; # remember which types are used in package_config
}
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - -
More information about the Fai-commit
mailing list