diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-04-23 13:51:48 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-04-24 07:33:59 +0200 |
commit | a49e7948029d8219d7cb182fbc1b0adb587691b8 (patch) | |
tree | 14dc3c33c2e6578213d2716e0b318089d2271b19 /apt-pkg/deb/debindexfile.h | |
parent | feab34c5216941ca95aae1a389238a77b662d1de (diff) |
create debIFTypeDscFile type
Diffstat (limited to 'apt-pkg/deb/debindexfile.h')
-rw-r--r-- | apt-pkg/deb/debindexfile.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apt-pkg/deb/debindexfile.h b/apt-pkg/deb/debindexfile.h index 017c69a0a..88abfdd9d 100644 --- a/apt-pkg/deb/debindexfile.h +++ b/apt-pkg/deb/debindexfile.h @@ -164,4 +164,22 @@ class debSourcesIndex : public pkgIndexFile virtual ~debSourcesIndex() {}; }; +class debDscFileIndex : public pkgIndexFile +{ + private: + std::string DscFile; + public: + virtual const Type *GetType() const APT_CONST; + virtual pkgSrcRecords::Parser *CreateSrcParser() const; + virtual bool Exists() const; + virtual bool HasPackages() const {return false;}; + virtual unsigned long Size() const; + virtual std::string Describe(bool /*Short*/) const { + return DscFile; + }; + + debDscFileIndex(std::string &DscFile); + virtual ~debDscFileIndex() {}; +}; + #endif |