adblock: release 2.4.0 (release 2) 4088/head
authorDirk Brenken <dev@brenken.org>
Tue, 28 Feb 2017 19:35:12 +0000 (20:35 +0100)
committerDirk Brenken <dev@brenken.org>
Tue, 28 Feb 2017 19:35:12 +0000 (20:35 +0100)
* add missing sort step if tld compression was disabled

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/adblock/Makefile
net/adblock/files/adblock.sh

index 917c51425e17c78b7a494e8fc8d6a6e9569a4a9a..9c7f746b8fdc5cfeaaa08660411d7b44e7cc754c 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
 PKG_VERSION:=2.4.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-3.0+
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index 62d1a1c540376b339de3f052b771e8ae09e9c619..a470d0bf7e0c82ddd29acacd6b5f8467f2989668 100755 (executable)
@@ -10,7 +10,7 @@
 #
 LC_ALL=C
 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
-adb_ver="2.4.0"
+adb_ver="2.4.0-2"
 adb_enabled=1
 adb_debug=0
 adb_backup=0
@@ -406,8 +406,10 @@ f_main()
                     awk -F "." '{for(f=NF;f > 1;f--) printf "%s.", $f;print $1}' "${adb_tmpfile}" | sort -u > "${adb_tmpload}"
                     awk '{if(NR==1){tld=$NF};while(getline){if($NF !~ tld"\\."){print tld;tld=$NF}}print tld}' "${adb_tmpload}" > "${adb_tmpfile}"
                     awk -F "." '{for(f=NF;f > 1;f--) printf "%s.", $f;print $1}' "${adb_tmpfile}" > "${adb_tmpload}"
-                    mv -f "${adb_tmpload}" "${adb_tmpfile}"
+                else
+                    sort -u "${adb_tmpfile}" > "${adb_tmpload}"
                 fi
+                mv -f "${adb_tmpload}" "${adb_tmpfile}"
                 f_list backup
             else
                 f_list restore