diff options
author | Michael Vogt <mvo@debian.org> | 2013-12-05 07:53:53 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-12-05 07:53:53 +0100 |
commit | d958636fdf39d8b1f08239f9981c8b6520bde7a6 (patch) | |
tree | 34fb658423e811a81acb3b2ba4c9093e88d1715c /apt-pkg/metaindex.cc | |
parent | 86e3c55052737d57f9d0123f8aaacd044774c698 (diff) |
add new LocalFileName() method to metaindex
Diffstat (limited to 'apt-pkg/metaindex.cc')
-rw-r--r-- | apt-pkg/metaindex.cc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/apt-pkg/metaindex.cc b/apt-pkg/metaindex.cc deleted file mode 100644 index 2292ac388..000000000 --- a/apt-pkg/metaindex.cc +++ /dev/null @@ -1,44 +0,0 @@ - -#include <apt-pkg/strutl.h> - -#include "init.h" -#include "metaindex.h" - - -#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13) -string metaIndex::MetaIndexInfo(const char *Type) const -{ - string Info = ::URI::SiteOnly(URI) + ' '; - if (Dist[Dist.size() - 1] == '/') - { - if (Dist != "/") - Info += Dist; - } - else - Info += Dist; - Info += " "; - Info += Type; - return Info; -} - -string metaIndex::MetaIndexFile(const char *Type) const -{ - return _config->FindDir("Dir::State::lists") + - URItoFileName(MetaIndexURI(Type)); -} - -string metaIndex::MetaIndexURI(const char *Type) const -{ - string Res; - - if (Dist == "/") - Res = URI; - else if (Dist[Dist.size()-1] == '/') - Res = URI + Dist; - else - Res = URI + "dists/" + Dist + "/"; - - Res += Type; - return Res; -} -#endif |