]>
git.saurik.com Git - apt.git/blob - apt-pkg/metaindex.cc
2292ac3889fb72a38d5a900281637bf5534b87aa
2 #include <apt-pkg/strutl.h>
8 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
9 string
metaIndex::MetaIndexInfo(const char *Type
) const
11 string Info
= ::URI::SiteOnly(URI
) + ' ';
12 if (Dist
[Dist
.size() - 1] == '/')
24 string
metaIndex::MetaIndexFile(const char *Type
) const
26 return _config
->FindDir("Dir::State::lists") +
27 URItoFileName(MetaIndexURI(Type
));
30 string
metaIndex::MetaIndexURI(const char *Type
) const
36 else if (Dist
[Dist
.size()-1] == '/')
39 Res
= URI
+ "dists/" + Dist
+ "/";