summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgrecords.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-27 15:40:47 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-27 15:40:47 +0100
commit5dd00edbcf702cac1ea22392796c65881a8ef6f9 (patch)
treedc6889cd336109df822a3b7c9f72881a6824157e /apt-pkg/pkgrecords.h
parent28f24d3dad1844af316337d565ba2ebc11c8ce97 (diff)
add messages to our deprecation warnings in libapt
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/pkgrecords.h')
-rw-r--r--apt-pkg/pkgrecords.h8
1 files changed, 4 insertions, 4 deletions
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();};