Commit 9038efe7 authored by Mike Hibler's avatar Mike Hibler
Browse files

Deal with lack of .sig file a little more cleanly.

parent a5a61f6f
......@@ -837,7 +837,11 @@ sub FetchImageFile($$$)
system("sshtb -host $CONTROL $cmdargs ");
if ($?) {
$EUID = $UID = $SAVEUID;
print STDERR "Fetch of image file failed\n";
if ($urlarg =~ /sigfile=1/) {
print STDERR "WARNING: Fetch of image signature file failed\n";
} else {
print STDERR "Fetch of image file failed\n";
}
return -1;
}
$UID = $SAVEUID;
......@@ -947,6 +951,8 @@ sub FetchSigFile($)
# Do not need this.
unlink("${localfile}.sha1")
if (-e "${localfile}.sha1");
} else {
unlink($localfile);
}
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment