]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
* Install-Reason -> Auto-Installed in pkgstates
[apt.git] / apt-pkg / acquire-item.cc
index b2f896627f23e44433c4214c1ab562e4b32efa68..14acad85a39e28987d69e572cbf230a3973d9acf 100644 (file)
@@ -400,6 +400,12 @@ void pkgAcqMetaSig::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
    string Final = _config->FindDir("Dir::State::lists") + URItoFileName(RealURI);
    unlink(Final.c_str());
 
+   // if we get a timeout if fail
+   if(LookupTag(Message,"FailReason") == "Timeout") {
+      Item::Failed(Message,Cnf);
+      return;
+   }
+
    // queue a pkgAcqMetaIndex with no sigfile
    new pkgAcqMetaIndex(Owner, MetaIndexURI, MetaIndexURIDesc, MetaIndexShortDesc,
                       "", IndexTargets, MetaIndexParser);