fix the issue if having entry has dir path in the .pkglist, genimage failed

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-04-02 17:39:46 +00:00
parent 312c17e2c5
commit f442fe034d

View File

@ -415,14 +415,18 @@ unless ($onlyinitrd) {
}
}
}
$pkgnames .= " " . join(' ', @npa);
$group_pkgnames .= " " . join(' ', @npa_group);
if (@npa) {
$pkgnames .= " " . join(' ', @npa);
}
if (@npa_group) {
$group_pkgnames .= " " . join(' ', @npa_group);
}
}
my $envlist;
if(exists $pkg_hash{$pass}{ENVLIST}){
$envlist = join(' ', @{$pkg_hash{$pass}{ENVLIST}});
}
if($pkgnames ne ' ')
if($pkgnames)
{
print "$envlist $yumcmd $pkgnames\n";
$rc = system("$envlist $yumcmd $pkgnames");
@ -432,7 +436,7 @@ unless ($onlyinitrd) {
exit 1;
}
}
if($group_pkgnames ne ' ')
if($group_pkgnames)
{
print "$envlist $yumcmd -t pattern $group_pkgnames\n";
$rc = system("$envlist $yumcmd -t pattern $group_pkgnames");