fix rpm flags issue

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11625 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott
2012-02-19 18:35:15 +00:00
parent 768595be98
commit 1e32434db2
+4 -7
View File
@@ -1596,12 +1596,7 @@ sub doAIXcopy
foreach my $pkg (split(/,/, $imagedef{$img}{otherpkgs}))
{
my ($junk, $pname);
if (($pkg =~ /^R:/) || ($pkg =~ /^I:/) || ($pkg =~ /^E:/) )
{
($junk, $pname) = split(/:/, $pkg);
} else {
$pname = $pkg;
}
$pname = $pkg;
if (!grep(/^$pname$/, @pkglist))
{
push(@pkglist, $pname);
@@ -2308,7 +2303,9 @@ sub updateAIXsoftware
my $rcmd;
if (scalar(@rpm_pkgs)) {
$rcmd = qq~cd $dir; /usr/bin/rpm $flags $pkg_string 2>/dev/null~;
$rcmd = qq~cd $dir; /usr/bin/rpm $flags $pkg_string ~;
} else {
$rcmd = qq~/usr/bin/rpm $flags ~;
}
if ($::VERBOSE)