fixed defect 3458235, get_compatible_version_from_rpm also will check the directory of the firmware files

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11226 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua
2011-12-13 07:17:12 +00:00
parent 1bf336a3f8
commit b1d4dc5613
+2 -2
View File
@@ -360,7 +360,7 @@ sub preprocess_for_rflash {
my $cmd;
if( -d $packages_fw) {
$cmd = "rm -rf $packages_fw";
$cmd = "rm -rf $packages_fw/*";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
{
@@ -371,7 +371,7 @@ sub preprocess_for_rflash {
}
}
$cmd = "mkdir $packages_fw";
$cmd = "mkdir -p $packages_fw";
xCAT::Utils->runcmd("$cmd", 0);
if ($::RUNCMD_RC != 0)
{