diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-04-26 00:00:51 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-04-28 09:59:33 +0200 |
commit | 0d29b9d4368284782862c7b507c47002b79ddb27 (patch) | |
tree | bcf0fa5d55cce7eba85f20235648d1728b104924 /apt-pkg/deb/debmetaindex.h | |
parent | a298a1dc595c548e6c10b48b8e69d987e5be1c42 (diff) |
WIP local deb install
Diffstat (limited to 'apt-pkg/deb/debmetaindex.h')
-rw-r--r-- | apt-pkg/deb/debmetaindex.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/apt-pkg/deb/debmetaindex.h b/apt-pkg/deb/debmetaindex.h index 2286fa8b2..0e70bba87 100644 --- a/apt-pkg/deb/debmetaindex.h +++ b/apt-pkg/deb/debmetaindex.h @@ -18,6 +18,7 @@ class pkgAcquire; class pkgIndexFile; +class debDebPkgFileIndex; class debReleaseIndex : public metaIndex { public: @@ -71,4 +72,27 @@ class debReleaseIndex : public metaIndex { void PushSectionEntry(const debSectionEntry *Entry); }; +class debDebFileMetaIndex : public metaIndex +{ + private: + std::string DebFile; + debDebPkgFileIndex *DebIndex; + public: + virtual std::string ArchiveURI(std::string const& /*File*/) const { + return DebFile; + } + virtual bool GetIndexes(pkgAcquire* /*Owner*/, const bool& /*GetAll=false*/) const { + return true; + } + virtual std::vector<pkgIndexFile *> *GetIndexFiles() { + return Indexes; + } + virtual bool IsTrusted() const { + return true; + } + debDebFileMetaIndex(std::string const &DebFile); + virtual ~debDebFileMetaIndex() {}; + +}; + #endif |