diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-03-03 17:43:31 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-03-03 17:43:31 +0100 |
commit | 0245fd39e5bfb74c45cd70b815b603565e9529b6 (patch) | |
tree | 571a2c146e0230054686ac398170c5d17ccdc163 /apt-pkg/deb/debindexfile.cc | |
parent | e50ebf9673515dd51475ccc6d2a5a9abfc620d73 (diff) | |
parent | cfba4f6908927f46289f9fd945af02f12ee74412 (diff) |
merged from lp:~mvo/apt/mvo
Diffstat (limited to 'apt-pkg/deb/debindexfile.cc')
-rw-r--r-- | apt-pkg/deb/debindexfile.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc index 9961b5ae4..1e8c04033 100644 --- a/apt-pkg/deb/debindexfile.cc +++ b/apt-pkg/deb/debindexfile.cc @@ -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); |