X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b53c9cea2902572822bbbece5bac236c1bbf846e..cc0a4c82b3c132abba9b9ec35fd61bc8b45a1b80:/apt-pkg/pkgrecords.h?ds=sidebyside diff --git a/apt-pkg/pkgrecords.h b/apt-pkg/pkgrecords.h index 0ed731f1f..8da3265c6 100644 --- a/apt-pkg/pkgrecords.h +++ b/apt-pkg/pkgrecords.h @@ -68,10 +68,10 @@ class pkgRecords::Parser /*{{{*/ * choose the hash to be used. */ virtual HashStringList Hashes() const { return HashStringList(); }; - APT_DEPRECATED std::string MD5Hash() const { return GetHashFromHashes("MD5Sum"); }; - APT_DEPRECATED std::string SHA1Hash() const { return GetHashFromHashes("SHA1"); }; - APT_DEPRECATED std::string SHA256Hash() const { return GetHashFromHashes("SHA256"); }; - APT_DEPRECATED std::string SHA512Hash() const { return GetHashFromHashes("SHA512"); }; + APT_DEPRECATED_MSG("Use .Hashes instead of a hardcoded hash algorithm") std::string MD5Hash() const { return GetHashFromHashes("MD5Sum"); }; + APT_DEPRECATED_MSG("Use .Hashes instead of a hardcoded hash algorithm") std::string SHA1Hash() const { return GetHashFromHashes("SHA1"); }; + APT_DEPRECATED_MSG("Use .Hashes instead of a hardcoded hash algorithm") std::string SHA256Hash() const { return GetHashFromHashes("SHA256"); }; + APT_DEPRECATED_MSG("Use .Hashes instead of a hardcoded hash algorithm") std::string SHA512Hash() const { return GetHashFromHashes("SHA512"); }; // These are some general stats about the package virtual std::string Maintainer() {return std::string();};