X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/4e3180ff00ae32e4d836517180137048ac3cdfc7..1f46d14620a0b58a9239fa3faa59ba79a98f6c98:/apt-pkg/deb/debindexfile.h diff --git a/apt-pkg/deb/debindexfile.h b/apt-pkg/deb/debindexfile.h index 69754e79d..18322dc1b 100644 --- a/apt-pkg/deb/debindexfile.h +++ b/apt-pkg/deb/debindexfile.h @@ -192,7 +192,29 @@ class debDebPkgFileIndex : public pkgIndexFile debDebPkgFileIndex(std::string DebFile); virtual ~debDebPkgFileIndex() {}; - +}; + +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() {}; +}; + +class debDebianSourceDirIndex : public debDscFileIndex +{ + virtual const Type *GetType() const APT_CONST; }; #endif