diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-12 01:23:01 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-14 15:22:18 +0200 |
commit | 9bfb1136abfd58e48545304507dedceb2fe87a36 (patch) | |
tree | 586fef2a045bc1bcd3aca7aab9939c53c79311a5 /apt-pkg/contrib/srvrec.h | |
parent | 93a0805bc9afd556e625fb90e98e690b1a847ed4 (diff) |
srv test: do 100 pulls twice and compare list
The previous implementation was still a bit unstable in terms of failing
at times. Lets try if we have more luck with this one.
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/contrib/srvrec.h')
-rw-r--r-- | apt-pkg/contrib/srvrec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h index 2adad03e9..920b6bb32 100644 --- a/apt-pkg/contrib/srvrec.h +++ b/apt-pkg/contrib/srvrec.h @@ -12,6 +12,7 @@ #include <arpa/nameser.h> #include <vector> #include <string> +#include <tuple> class SrvRec { @@ -29,6 +30,9 @@ class SrvRec bool operator<(SrvRec const &other) const { return this->priority < other.priority; } + bool operator==(SrvRec const &other) const { + return std::tie(target, priority, weight, port) == std::tie(other.target, other.priority, other.weight, other.port); + } SrvRec(std::string const Target, u_int16_t const Priority, u_int16_t const Weight, u_int16_t const Port) : |