]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/srvrec.cc
CopyFile: Use 64 * 1024 instead of 64000 as buffer size
[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;