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:
parent
3e376077eb
commit
65af2acb5d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user