From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] Remove orphaned ddns patches
Date: Sat, 23 Oct 2021 14:44:56 +0200 [thread overview]
Message-ID: <f8fd96a2-60f6-bc05-de4a-75d4ccf3dd89@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 3350 bytes --]
These are no longer necessary, since ddns 0.14 comes with both of them
applied.
Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
...nss-fix-unhandled-exeption-on-update-patch | 30 -------------------
...nss-fix-unhandled-exeption-on-update-patch | 30 -------------------
2 files changed, 60 deletions(-)
delete mode 100644 src/patches/ddns-011-ddnss-fix-unhandled-exeption-on-update-patch
delete mode 100644 src/patches/ddns-013-ddnss-fix-unhandled-exeption-on-update-patch
diff --git a/src/patches/ddns-011-ddnss-fix-unhandled-exeption-on-update-patch b/src/patches/ddns-011-ddnss-fix-unhandled-exeption-on-update-patch
deleted file mode 100644
index 95f6391be..000000000
--- a/src/patches/ddns-011-ddnss-fix-unhandled-exeption-on-update-patch
+++ /dev/null
@@ -1,30 +0,0 @@
-commit 7d0956d14ff8d823551ccd47ccf1492c9da9aac9
-Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
-Date: Mon May 25 18:00:51 2020 +0200
-
- ProviderDDNSS: Fix unhandled exception on update
-
- In python > 3.3 the getheader() attribute is not longer part of the
- urllib.response response.info() object. It is part of response object
- and so directly can be accessed.
-
- Fixes #12328
-
- Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
-
-diff --git a/src/ddns/providers.py b/src/ddns/providers.py
-index f1fed22..46d8a67 100644
---- a/src/ddns/providers.py
-+++ b/src/ddns/providers.py
-@@ -642,10 +642,8 @@ class DDNSProviderDDNSS(DDNSProvider):
- response = self.send_request(self.url, data=data)
-
- # This provider sends the response code as part of the header.
-- header = response.info()
--
- # Get status information from the header.
-- output = header.getheader('ddnss-response')
-+ output = response.getheader('ddnss-response')
-
- # Handle success messages.
- if output == "good" or output == "nochg":
diff --git a/src/patches/ddns-013-ddnss-fix-unhandled-exeption-on-update-patch b/src/patches/ddns-013-ddnss-fix-unhandled-exeption-on-update-patch
deleted file mode 100644
index 95f6391be..000000000
--- a/src/patches/ddns-013-ddnss-fix-unhandled-exeption-on-update-patch
+++ /dev/null
@@ -1,30 +0,0 @@
-commit 7d0956d14ff8d823551ccd47ccf1492c9da9aac9
-Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
-Date: Mon May 25 18:00:51 2020 +0200
-
- ProviderDDNSS: Fix unhandled exception on update
-
- In python > 3.3 the getheader() attribute is not longer part of the
- urllib.response response.info() object. It is part of response object
- and so directly can be accessed.
-
- Fixes #12328
-
- Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
-
-diff --git a/src/ddns/providers.py b/src/ddns/providers.py
-index f1fed22..46d8a67 100644
---- a/src/ddns/providers.py
-+++ b/src/ddns/providers.py
-@@ -642,10 +642,8 @@ class DDNSProviderDDNSS(DDNSProvider):
- response = self.send_request(self.url, data=data)
-
- # This provider sends the response code as part of the header.
-- header = response.info()
--
- # Get status information from the header.
-- output = header.getheader('ddnss-response')
-+ output = response.getheader('ddnss-response')
-
- # Handle success messages.
- if output == "good" or output == "nochg":
--
2.26.2
reply other threads:[~2021-10-23 12:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8fd96a2-60f6-bc05-de4a-75d4ccf3dd89@ipfire.org \
--to=peter.mueller@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox