]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/srvrec.cc
test framework: Correctly generate new paths in noopchroot
[apt.git] / apt-pkg / contrib / srvrec.cc
index 9af2826533ab5373c1183510d49f8a5a1d3511dc..be159bad932f40e08a046e96b2d83e1fac239ce1 100644 (file)
@@ -16,6 +16,7 @@
 #include <time.h>
 
 #include <algorithm>
+#include <tuple>
 
 #include <apt-pkg/configuration.h>
 #include <apt-pkg/error.h>
 #include "srvrec.h"
 
 
+bool SrvRec::operator==(SrvRec const &other) const
+{
+   return (std::tie(target, priority, weight, port) ==
+           std::tie(other.target, other.priority, other.weight, other.port));
+}
+
 bool GetSrvRecords(std::string host, int port, std::vector<SrvRec> &Result)
 {
    std::string target;