fetcher: Always delete the tmp host key file after getting its fingerprint

This commit is contained in:
Hylke Bons 2012-06-28 12:03:04 +01:00
parent 744d4f2ffa
commit 5ee72e37f5

View file

@ -240,6 +240,8 @@ namespace SparkleLib {
// WaitForExit, or it will hang forever on output > 4096 bytes
string fingerprint = process.StandardOutput.ReadToEnd ().Trim ();
process.WaitForExit ();
File.Delete (tmp_file_path);
try {
fingerprint = fingerprint.Substring (fingerprint.IndexOf (" ") + 1, 47);
@ -249,8 +251,6 @@ namespace SparkleLib {
return null;
}
File.Delete (tmp_file_path);
return fingerprint;
}