summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-04 16:38:20 +0100
committerMichael Vogt <mvo@debian.org>2013-12-04 16:38:20 +0100
commitd85d0c09cee3aa5b84e45f46595f6dd617ce64b6 (patch)
tree26458319ae217f3a68ba36c6a7797d475c941ec5
parent42517437947654de48102c1f9e32353c8a043af2 (diff)
use MetaIndexFile() instead of MetaIndexURI()
-rw-r--r--cmdline/apt-get.cc6
1 files changed, 2 insertions, 4 deletions
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,