adblock-fast: bugfix: block domains from config when not using block-lists
* remove empty lines from the combined list to allo optimization code to work properly Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
parent
ec0ea77927
commit
1914114ed3
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 '
|
||||
|
|
Loading…
Reference in a new issue