]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debindexfile.cc
let the Mark methods return if their marking was successful
[apt.git] / apt-pkg / deb / debindexfile.cc
index 9961b5ae44178e135c8a2e78b3968db1b43c0281..1e8c040333b028def25e8330b484ab4cb15ac035 100644 (file)
@@ -66,7 +66,10 @@ pkgSrcRecords::Parser *debSourcesIndex::CreateSrcParser() const
    string SourcesURI = _config->FindDir("Dir::State::lists") + 
       URItoFileName(IndexURI("Sources"));
    string SourcesURIgzip = SourcesURI + ".gz";
-   if (!FileExists(SourcesURI) && FileExists(SourcesURIgzip))
+
+   if (!FileExists(SourcesURI) && !FileExists(SourcesURIgzip))
+      return NULL;
+   else if (!FileExists(SourcesURI) && FileExists(SourcesURIgzip))
       SourcesURI = SourcesURIgzip;
 
    return new debSrcRecordParser(SourcesURI,this);