summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-14 12:01:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-14 12:01:25 +0000
commit692ec2a985833c74bc046694e19e36bb54f21cdb (patch)
treea8d759aad35b82c1c4285a1ec3c785dad0b19e18
parentReleasing progress-linux version 0.1.4-6~progress6+u1. (diff)
downloaddehydrated-hook-ddns-tsig-692ec2a985833c74bc046694e19e36bb54f21cdb.tar.xz
dehydrated-hook-ddns-tsig-692ec2a985833c74bc046694e19e36bb54f21cdb.zip
Merging debian version 0.1.4-7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/deprecated_dns-resolver-query.patch38
-rw-r--r--debian/patches/series1
3 files changed, 46 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 9e9cf09..45c771d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+dehydrated-hook-ddns-tsig (0.1.4-7) unstable; urgency=medium
+
+ * Add pyth to avoid deprecated dns.resolver.query()
+ Thanks to Felix <felix@felix-zauberer.de> (Closes: #1005248)
+
+ -- IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> Thu, 10 Feb 2022 09:50:33 +0100
+
dehydrated-hook-ddns-tsig (0.1.4-6~progress6+u1) fuchur-backports; urgency=medium
* Initial upload to fuchur-backports.
diff --git a/debian/patches/deprecated_dns-resolver-query.patch b/debian/patches/deprecated_dns-resolver-query.patch
new file mode 100644
index 0000000..93a6954
--- /dev/null
+++ b/debian/patches/deprecated_dns-resolver-query.patch
@@ -0,0 +1,38 @@
+Description: Resolve DeprecationWarning for dns.resolver.query()
+ dns.resolver.query() has been replaced by dns.resolvers.resolve()
+Author: Felix <felix@felix-zauberer.de>
+Bug: https://github.com/eferdman/dehydrated-hook-ddns-tsig/issues/36
+Reviewed-by: IOhannes m zmölnig
+Last-Update: 2022-02-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- dehydrated-hook-ddns-tsig.orig/dehydrated-hook-ddns-tsig.py
++++ dehydrated-hook-ddns-tsig/dehydrated-hook-ddns-tsig.py
+@@ -154,15 +154,15 @@
+ nameservers = []
+ try:
+ fqdn = '.'.join(name_list[i:])
+- for rdata in dns.resolver.query(fqdn, rdtype=dns.rdatatype.NS):
++ for rdata in dns.resolver.resolve(fqdn, rdtype=dns.rdatatype.NS):
+ ns = rdata.target.to_unicode()
+ nsL = []
+ try:
+- nsL.extend([_.to_text() for _ in dns.resolver.query(ns, rdtype=dns.rdatatype.A)])
++ nsL.extend([_.to_text() for _ in dns.resolver.resolve(ns, rdtype=dns.rdatatype.A)])
+ except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN) as e:
+ pass
+ try:
+- nsL.extend([_.to_text() for _ in dns.resolver.query(ns, rdtype=dns.rdatatype.AAAA)])
++ nsL.extend([_.to_text() for _ in dns.resolver.resolve(ns, rdtype=dns.rdatatype.AAAA)])
+ except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN) as e:
+ pass
+ if nsL:
+@@ -212,7 +212,7 @@
+ answer = []
+ try:
+ answer = [_.to_text().strip('"'+"'")
+- for _ in resolver.query(domain_name, rtype)]
++ for _ in resolver.resolve(domain_name, rtype)]
+ except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer) as e:
+ # probably not there yet...
+ logger.debug(
diff --git a/debian/patches/series b/debian/patches/series
index 3f04aa8..3742c5d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ python3.patch
key_algorithm.patch
0002-don-t-fail-if-a-nameserver-for-a-domain-doesn-t-have.patch
rcode_compare.patch
+deprecated_dns-resolver-query.patch