From: Michael Vogt <mvo@debian.org> Date: Wed, 4 Dec 2013 15:38:20 +0000 (+0100) Subject: use MetaIndexFile() instead of MetaIndexURI() X-Git-Tag: 0.9.14.1~3^2~4 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/d85d0c09cee3aa5b84e45f46595f6dd617ce64b6 use MetaIndexFile() instead of MetaIndexURI() --- diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 79e9d7fcb..f0405e75c 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -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,