adblock-fast: bugfix: block domains from config when not using block-lists 22853/head
authorStan Grishin <stangri@melmac.ca>
Sun, 10 Dec 2023 02:49:51 +0000 (02:49 +0000)
committerStan Grishin <stangri@melmac.ca>
Sun, 10 Dec 2023 02:50:03 +0000 (02:50 +0000)
* remove empty lines from the combined list to allo optimization code
  to work properly

Signed-off-by: Stan Grishin <stangri@melmac.ca>
net/adblock-fast/Makefile
net/adblock-fast/files/etc/init.d/adblock-fast

index 37da8defc8ea198cd130f762d2a8d73bf982bac6..3c5fdddbe9adf5708b8ee7b7a63392549412abc6 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock-fast
 PKG_VERSION:=1.1.0
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
 PKG_LICENSE:=GPL-3.0-or-later
 
index a12e3a6f1f715e17bfb45a3f7299287cae333c9d..84ff899fcfb15d2ecef497f060a5fb4c5445c71b 100755 (executable)
@@ -1209,6 +1209,7 @@ download_lists() {
 $(cat $A_TMP)"
        for hf in ${allowed_domain}; do hf="$(echo "$hf" | sed 's/\./\\./g')"; allow_filter="$allow_filter/(^|\.)${hf}$/d;"; done
 
+       sed -i '/^[[:space:]]*$/d' "$B_TMP"
        [ ! -s "$B_TMP" ] && return 1
 
        output 1 'Processing downloads '