summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/hashsum_template.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-10-14 14:51:56 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-10-14 14:51:56 +0200
commit1d29e0e4c3072a18a0748ec89af1c1b8074a35a3 (patch)
treef59b016e873d9381aacac02cb94d1d33113063d7 /apt-pkg/contrib/hashsum_template.h
parentcd16c01df411b182c0cfbaff3a12b36084a79e13 (diff)
cherry pick -r 2184.1.15..2184.1.18 from debian-experimental2
Diffstat (limited to 'apt-pkg/contrib/hashsum_template.h')
-rw-r--r--apt-pkg/contrib/hashsum_template.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apt-pkg/contrib/hashsum_template.h b/apt-pkg/contrib/hashsum_template.h
index 85d94c2af..fe0984f4e 100644
--- a/apt-pkg/contrib/hashsum_template.h
+++ b/apt-pkg/contrib/hashsum_template.h
@@ -29,7 +29,11 @@ class HashSumValue
bool operator ==(const HashSumValue &rhs) const
{
return memcmp(Sum,rhs.Sum,sizeof(Sum)) == 0;
- };
+ };
+ bool operator !=(const HashSumValue &rhs) const
+ {
+ return memcmp(Sum,rhs.Sum,sizeof(Sum)) != 0;
+ };
string Value() const
{