fix bug 3983: copycds show error info

This commit is contained in:
zhaoertao 2014-02-11 22:06:48 -08:00
parent 2876b0f371
commit a4a0ed5da3

View File

@ -190,16 +190,17 @@ sub copycd {
'n=s' => \$distname,
);
unless($distname && $file && $mntpath && $arch) {
$callback->({error=>"distname, file or mntpath not specified, $distname, $file, $mntpath"});
#$callback->({error=>"distname, file or mntpath not specified, $distname, $file, $mntpath"});
return ;
}
if ($distname && $distname !~ /^vios/i) {
$callback->({error=>"distname incorrect"});
#$callback->({error=>"distname incorrect"});
return ;
} elsif ($arch !~ /^ppc64/i) {
$callback->({error=>"arch incorrect"});
#$callback->({error=>"arch incorrect"});
return ;
} elsif (!$file) {
$callback->({error=>"Only suport to use the iso file vios"});
#$callback->({error=>"Only suport to use the iso file vios"});
return;
}
#print __LINE__."=====>vios=====.\n";