]> git.saurik.com Git - apt.git/blobdiff - methods/https.cc
use dpkg --unpack --recursive to avoid long cmdlines
[apt.git] / methods / https.cc
index 92f786d1706d6e21da3de9c5dd09f6bad37077de..bbdbd8fa9d2fc0133907a8a7c762c524de67e6bb 100644 (file)
@@ -436,7 +436,13 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
            break;
       }
 #pragma GCC diagnostic pop
-      return _error->Error("%s", curl_errorstr);
+      // only take curls technical errors if we haven't our own
+      // (e.g. for the maximum size limit we have and curls can be confusing)
+      if (_error->PendingError() == false)
+        _error->Error("%s", curl_errorstr);
+      else
+        _error->Warning("curl: %s", curl_errorstr);
+      return false;
    }
 
    // server says file not modified