Forráskód Böngészése

use MetaIndexFile() instead of MetaIndexURI()

Michael Vogt 12 éve
szülő
commit
d85d0c09ce
1 módosított fájl, 2 hozzáadás és 4 törlés
  1. 2 4
      cmdline/apt-get.cc

+ 2 - 4
cmdline/apt-get.cc

@@ -142,14 +142,12 @@ std::string MetaIndexFileName(metaIndex *metaindex)
    debReleaseIndex *r = (debReleaseIndex*)metaindex;
    debReleaseIndex *r = (debReleaseIndex*)metaindex;
 
 
    // see if we have a InRelease file
    // 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))
    if (FileExists(PathInRelease))
       return PathInRelease;
       return PathInRelease;
 
 
    // and if not return the normal one
    // 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,
 std::string GetReleaseForSourceRecord(pkgSourceList *SrcList,