]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
use MetaIndexFile() instead of MetaIndexURI()
[apt.git] / 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,