Temporary repository catalog file is now removed after no longer needed

This commit is contained in:
Simon Rozman 2016-05-24 22:12:46 +02:00
parent 71f66668bf
commit 40fd616e5d

View File

@ -192,11 +192,10 @@ wxXmlDocument* wxUpdCheckThread::GetCatalogue()
wxScopedPtr<wxXmlDocument> doc(new wxXmlDocument()); wxScopedPtr<wxXmlDocument> doc(new wxXmlDocument());
if (!doc->Load(fileName, "UTF-8", wxXMLDOC_KEEP_WHITESPACE_NODES)) { if (!doc->Load(fileName, "UTF-8", wxXMLDOC_KEEP_WHITESPACE_NODES)) {
wxLogWarning(_("Error loading repository catalogue.")); wxLogWarning(_("Error loading repository catalogue."));
http.Close();
continue; continue;
} }
m_config.Write(wxT("CatalogueLastModified"), http.GetHeader(wxT("Last-Modified"))); m_config.Write(wxT("CatalogueLastModified"), http.GetHeader(wxT("Last-Modified")));
http.Close(); wxRemoveFile(fileName);
wxLogStatus(_("Verifying repository catalogue signature...")); wxLogStatus(_("Verifying repository catalogue signature..."));