]> git.saurik.com Git - apt.git/commitdiff
use MetaIndexFile() instead of MetaIndexURI()
authorMichael Vogt <mvo@debian.org>
Wed, 4 Dec 2013 15:38:20 +0000 (16:38 +0100)
committerMichael Vogt <mvo@debian.org>
Wed, 4 Dec 2013 15:38:20 +0000 (16:38 +0100)
cmdline/apt-get.cc

index 79e9d7fcb0654a88f3adba8130eec6e8bd337f00..f0405e75c62e5b1acba78d6b5a91fa49b8738e0b 100644 (file)
@@ -142,14 +142,12 @@ std::string MetaIndexFileName(metaIndex *metaindex)
    debReleaseIndex *r = (debReleaseIndex*)metaindex;
 
    // see if we have a InRelease file
-   std::string PathInRelease =  _config->FindDir("Dir::State::lists") +
-      URItoFileName(r->MetaIndexURI("InRelease"));
+   std::string PathInRelease =  r->MetaIndexFile("InRelease");
    if (FileExists(PathInRelease))
       return PathInRelease;
 
    // and if not return the normal one
-   return _config->FindDir("Dir::State::lists") +
-      URItoFileName(r->MetaIndexURI("Release"));
+   return r->MetaIndexFile("Release");
 }
 
 std::string GetReleaseForSourceRecord(pkgSourceList *SrcList,