]>
git.saurik.com Git - apt.git/blob - apt-pkg/metaindex.cc
1 // Include Files /*{{{*/
2 #include <apt-pkg/pkgcachegen.h>
3 #include <apt-pkg/indexfile.h>
4 #include <apt-pkg/metaindex.h>
12 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
13 std::string
metaIndex::LocalFileName() const { return ""; }
15 #include <apt-pkg/debmetaindex.h>
16 std::string
metaIndex::LocalFileName() const
18 debReleaseIndex
const * deb
= dynamic_cast<debReleaseIndex
const*>(this);
20 return deb
->LocalFileName();
26 std::string
metaIndex::Describe() const
31 pkgCache::RlsFileIterator
metaIndex::FindInCache(pkgCache
&Cache
, bool const) const
33 return pkgCache::RlsFileIterator(Cache
);
36 bool metaIndex::Merge(pkgCacheGenerator
&Gen
,OpProgress
*) const
38 return Gen
.SelectReleaseFile("", "");
42 metaIndex::metaIndex(std::string
const &URI
, std::string
const &Dist
,
43 char const * const Type
)
44 : Indexes(NULL
), Type(Type
), URI(URI
), Dist(Dist
), Trusted(false)
49 metaIndex::~metaIndex()
53 for (std::vector
<pkgIndexFile
*>::iterator I
= (*Indexes
).begin();
54 I
!= (*Indexes
).end(); ++I
)