adblock: update 4.0.5-4

* remove dumb list cache
* start adblock processing after adding/removing
  list sources via CLI
* add regional list source for france

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit ab44d8146a)
This commit is contained in:
Dirk Brenken
2020-05-31 18:28:27 +02:00
parent 45313e42f9
commit c09244b012
4 changed files with 14 additions and 8 deletions
+5 -7
View File
@@ -114,19 +114,17 @@ list()
if [ -n "$(uci -q changes adblock)" ]
then
uci_commit adblock
"${adb_init}" start
fi
else
src_archive="$(uci_get adblock global adb_srcarc "/etc/adblock/adblock.sources.gz")"
src_file="$(uci_get adblock global adb_srcfile "/tmp/adb_sources.json")"
src_enabled="$(uci -q show adblock.global.adb_sources)"
if [ ! -r "${src_file}" ]
if [ -r "${src_archive}" ]
then
if [ -r "${src_archive}" ]
then
zcat "${src_archive}" > "${src_file}"
else
printf "%s\\n" "::: adblock source archive '${src_archive}' not found"
fi
zcat "${src_archive}" > "${src_file}"
else
printf "%s\\n" "::: adblock source archive '${src_archive}' not found"
fi
if [ -r "${src_file}" ]
then