Accept comments in {profile}.pkglist and {profile}.exlist.

This can be useful to mark what is which package for, who requested it etc.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sikorsky 2008-09-10 14:16:15 +00:00
parent 3e376077eb
commit 65af2acb5d
2 changed files with 5 additions and 1 deletions

View File

@ -79,6 +79,8 @@ sub process_request {
my $excludestr = "find . ";
while (<$exlist>) {
chomp $_;
s/\s*#.*//; #-- remove comments
next if /^\s*$/; #-- skip empty lines
$excludestr .= "'!' -path '".$_."' -a ";
}
close($exlist);

View File

@ -129,7 +129,9 @@ unless ($onlyinitrd) {
}
open($yumconfig,"<","$pkglist");
while (<$yumconfig>) {
chomp;
chomp;
s/\s*#.*//; #-- remove comments
next if /^\s*$/; #-- skip empty lines
$yumcmd .= $_ . " ";
}
close($yumconfig);