diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-05 18:14:38 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-05 18:14:38 +0200 |
commit | 7be8c02360bdb9bd7f59b087da874f88af2a7206 (patch) | |
tree | c74317519bd5f9b73316c418f8356faf24a50441 /methods/https.cc | |
parent | 16f46f38c081fb942acc6051a707020495812a9a (diff) | |
parent | a865ed25fa54514224cf4d6f83dd9cf48b7ed02b (diff) | |
download | apt-7be8c02360bdb9bd7f59b087da874f88af2a7206.tar.gz |
* apt-pkg/contrib/configuration.cc:
- fix double delete (LP: #848907)
- ignore only the invalid regexp instead of all options
* apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc:
- fix fetching language information by adding OptionalSubIndexTarget
* methods/https.cc:
- cleanup broken downloads properly
* ftparchive/cachedb.cc:
- fix buffersize in bytes2hex
* apt-pkg/deb/deblistparser.cc:
- fix crash when the dynamic mmap needs to be grown in
LoadReleaseInfo (LP: #854090)
Diffstat (limited to 'methods/https.cc')
-rw-r--r-- | methods/https.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/methods/https.cc b/methods/https.cc index 06a0e285a..709744ce3 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -271,14 +271,17 @@ bool HttpsMethod::Fetch(FetchItem *Itm) long curl_servdate; curl_easy_getinfo(curl, CURLINFO_FILETIME, &curl_servdate); + File->Close(); + // cleanup if(success != 0) { _error->Error("%s", curl_errorstr); + // unlink, no need keep 401/404 page content in partial/ + unlink(File->Name().c_str()); Fail(); return true; } - File->Close(); // Timestamp struct utimbuf UBuf; |