adbock: update 1.2.6
authorDirk Brenken <[email protected]>
Tue, 21 Jun 2016 03:10:47 +0000 (05:10 +0200)
committerDirk Brenken <[email protected]>
Tue, 21 Jun 2016 03:10:47 +0000 (05:10 +0200)
* small addition in case of a failed list download

Signed-off-by: Dirk Brenken <[email protected]>
net/adblock/Makefile
net/adblock/files/adblock-update.sh

index 78457ffd6fd9969da4d54a363534b8753daefed7..56c0d5716a3cdebdbf609167c3b572370dcfd270 100644 (file)
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
-PKG_VERSION:=1.2.5
+PKG_VERSION:=1.2.6
 PKG_RELEASE:=1
 PKG_LICENSE:=GPL-3.0+
 PKG_MAINTAINER:=Dirk Brenken <[email protected]>
index d03e452180c042ffd2f0878543112e7a3e88a6cb..7c0f574ee9bbe0dd49391edd592efa7acfaf620a 100755 (executable)
@@ -10,7 +10,7 @@
 #
 adb_pid="${$}"
 adb_pidfile="/var/run/adblock.pid"
-adb_scriptver="1.2.5"
+adb_scriptver="1.2.6"
 adb_mincfgver="2.2"
 adb_scriptdir="${0%/*}"
 if [ -r "${adb_pidfile}" ]
@@ -161,6 +161,11 @@ do
             "${adb_uci}" -q set "adblock.${src_name}.adb_src_timestamp=list restored"
             f_log "   source download failed, restored (${count} entries)"
         else
+            if [ -r "${adb_dnsdir}/${adb_dnsprefix}.${src_name}" ]
+            then
+                rm -f "${adb_dnsdir}/${adb_dnsprefix}.${src_name}"
+                rm_done="true"
+            fi
             "${adb_uci}" -q delete "adblock.${src_name}.adb_src_count"
             "${adb_uci}" -q set "adblock.${src_name}.adb_src_timestamp=download failed"
             f_log "   source download failed, skipped"