adblock-fast: bugfix: block domains from config when not using block-lists 22854/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:51:57 +0000 (02:51 +0000)
* remove empty lines from the combined list to allo optimization code
  to work properly

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit 1914114ed39f29c8dd81305969741f7636254280)

net/adblock-fast/Makefile
net/adblock-fast/files/etc/init.d/adblock-fast

index 00362ab1d43c1add5f1d78c6210ff7bf5706a8ed..3be6d3c34c456bc45f9e21977a0391481eb50e37 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 fff3437f975b089492b5db27a13ce06355a79eac..12c32c5b0e55d9d66ccfdff1cd8264232224df17 100755 (executable)
@@ -1197,6 +1197,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 '