]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ddns: Add upstream patch to fix a typo for FreeDNSAfraid.org provider
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 23 Oct 2021 19:16:25 +0000 (21:16 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Fri, 19 Nov 2021 06:13:13 +0000 (07:13 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reported-by: Bernhard Bitsch <bbitsch@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Tested-by: Bernhard Bitsch <bbitsch@ipfire.org>
lfs/ddns
src/patches/ddns-014-freednsafraid-fix-typo.patch [new file with mode: 0644]

index b1d0f2dbb998c7e9297d9c6e9edc24ba7122da4e..873f927afb62ec1201e4ea2da3801496faa51928 100644 (file)
--- a/lfs/ddns
+++ b/lfs/ddns
@@ -72,7 +72,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 
        # Apply upstream patches.
-       # No upstream patches at the moment.
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-014-freednsafraid-fix-typo.patch
 
        cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh
        cd $(DIR_APP) && ./configure \
diff --git a/src/patches/ddns-014-freednsafraid-fix-typo.patch b/src/patches/ddns-014-freednsafraid-fix-typo.patch
new file mode 100644 (file)
index 0000000..4982d52
--- /dev/null
@@ -0,0 +1,21 @@
+commit 3a162595b9b44a4cbf08a3db14a4d2ebfeeb5583
+Author: Stefan Schantl <stefan.schantl@ipfire.org>
+Date:   Sat Oct 23 21:11:27 2021 +0200
+
+    FreeDNSAfraid.org: Fix typo in checking if the IP has been changed.
+    
+    Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
+
+diff --git a/src/ddns/providers.py b/src/ddns/providers.py
+index 4f27af9..5b2a82d 100644
+--- a/src/ddns/providers.py
++++ b/src/ddns/providers.py
+@@ -1204,7 +1204,7 @@ class DDNSProviderFreeDNSAfraidOrg(DDNSProvider):
+               output = response.read().decode()
+               # Handle success messages.
+-              if output.startswith("Updated") or output.startswith("No IP changed detected"):
++              if output.startswith("Updated") or output.startswith("No IP change detected"):
+                       return
+               # Handle error codes.