From 2dd9ccef6958866f38f05c73ef514b8f5d01c4b8 Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Thu, 31 Dec 2015 12:14:13 +0100 Subject: [PATCH] luci-app-ddns: removing unneeded assert - remove unneeded assert() in tools/ddns.lua - correct PKG_VERSION to the correct value from controller/ddns.lua Signed-off-by: Christian Schoenebeck --- applications/luci-app-ddns/Makefile | 2 +- applications/luci-app-ddns/luasrc/controller/ddns.lua | 2 +- applications/luci-app-ddns/luasrc/tools/ddns.lua | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) mode change 100644 => 100755 applications/luci-app-ddns/luasrc/controller/ddns.lua mode change 100644 => 100755 applications/luci-app-ddns/luasrc/tools/ddns.lua diff --git a/applications/luci-app-ddns/Makefile b/applications/luci-app-ddns/Makefile index dadff5ab6..1e38c2522 100644 --- a/applications/luci-app-ddns/Makefile +++ b/applications/luci-app-ddns/Makefile @@ -10,7 +10,7 @@ PKG_NAME:=luci-app-ddns # Version == major.minor.patch # increase on new functionality (minor) or patches (patch) -PKG_VERSION:=2.2.4 +PKG_VERSION:=2.3.1 # Release == build # increase on changes of translation files diff --git a/applications/luci-app-ddns/luasrc/controller/ddns.lua b/applications/luci-app-ddns/luasrc/controller/ddns.lua old mode 100644 new mode 100755 index 29598ea8a..abaf1c76a --- a/applications/luci-app-ddns/luasrc/controller/ddns.lua +++ b/applications/luci-app-ddns/luasrc/controller/ddns.lua @@ -22,7 +22,7 @@ local srv_ver_min = "2.5.0" -- minimum version of service required local srv_ver_cmd = [[/usr/lib/ddns/dynamic_dns_updater.sh --version | awk {'print $2'}]] local app_name = "luci-app-ddns" local app_title = "Dynamic DNS" -local app_version = "2.3.0-1" +local app_version = "2.3.1-1" function index() local nxfs = require "nixio.fs" -- global definitions not available diff --git a/applications/luci-app-ddns/luasrc/tools/ddns.lua b/applications/luci-app-ddns/luasrc/tools/ddns.lua old mode 100644 new mode 100755 index ecc413136..02331f44d --- a/applications/luci-app-ddns/luasrc/tools/ddns.lua +++ b/applications/luci-app-ddns/luasrc/tools/ddns.lua @@ -166,8 +166,6 @@ function value_parse(self, section, novld) return -- so data is missing end end - -- for whatever reason errtxt set and not handled above - assert( not (errtxt and (#errtxt > 0)), "unhandled validate error" ) -- lets continue with value returned from validate eq_cfg = ( vvalue == cvalue ) -- update equal_config flag -- 2.25.1