X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/5ad0096a4e19e191b59634e8a8817995ec4045ad..2c80abf922e948f8c96537faf1fa36cccd80e8d9:/apt-pkg/metaindex.h diff --git a/apt-pkg/metaindex.h b/apt-pkg/metaindex.h index 5be7397ae..3a624e86d 100644 --- a/apt-pkg/metaindex.h +++ b/apt-pkg/metaindex.h @@ -17,7 +17,6 @@ class OpProgress; #ifndef APT_8_CLEANER_HEADERS #include #include -#include using std::string; #endif @@ -36,7 +35,7 @@ public: HashStringList Hashes; unsigned long long Size; - APT_DEPRECATED HashString Hash; + APT_DEPRECATED_MSG("Use the HashStringList member Hashes instead of a hardcoded HashString") HashString Hash; }; APT_IGNORE_DEPRECATED_POP @@ -52,7 +51,7 @@ protected: std::string URI; std::string Dist; TriState Trusted; - TriState LoadedSuccessfully; + std::string SignedBy; // parsed from a file std::string Suite; @@ -61,6 +60,7 @@ protected: time_t ValidUntil; bool SupportsAcquireByHash; std::map Entries; + TriState LoadedSuccessfully; public: // Various accessors @@ -68,6 +68,7 @@ public: std::string GetDist() const; const char* GetType() const; TriState GetTrusted() const; + std::string GetSignedBy() const; std::string GetCodename() const; std::string GetSuite() const; @@ -106,6 +107,10 @@ public: metaIndex(std::string const &URI, std::string const &Dist, char const * const Type); virtual ~metaIndex(); + + // FIXME: make virtual on next abi break + bool IsArchitectureSupported(std::string const &arch) const; + bool IsArchitectureAllSupportedFor(IndexTarget const &target) const; }; #endif