]> git.saurik.com Git - apt.git/commitdiff
do not unlink https file on general error
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 27 Mar 2015 10:14:44 +0000 (11:14 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 18 Apr 2015 23:13:08 +0000 (01:13 +0200)
It might be quite interesting which file (content) made curl freak out
and other methods keep the file around as well.

Git-Dch: Ignore

methods/https.cc

index 32de42e4bd1b2689854423ac593b8b7c417f6979..c69e84d3a61f24df724c9481b17c9d209d37ce68 100644 (file)
@@ -386,7 +386,6 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
    if (success != 0)
    {
       _error->Error("%s", curl_errorstr);
-      unlink(File->Name().c_str());
       return false;
    }