mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
adblock-fast: bugfixes
* bugfix: remove IPKG_INSTROOT check * bugfix: do not attempt to download config update if package is disabled Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=adblock-fast
|
PKG_NAME:=adblock-fast
|
||||||
PKG_VERSION:=1.2.0
|
PKG_VERSION:=1.2.0
|
||||||
PKG_RELEASE:=20
|
PKG_RELEASE:=22
|
||||||
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
||||||
PKG_LICENSE:=AGPL-3.0-or-later
|
PKG_LICENSE:=AGPL-3.0-or-later
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ START=20
|
|||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
[ -n "${IPKG_INSTROOT}" ] && return 0
|
|
||||||
|
|
||||||
if type extra_command 1>/dev/null 2>&1; then
|
if type extra_command 1>/dev/null 2>&1; then
|
||||||
extra_command 'allow' 'Allows domain in current block-list and config'
|
extra_command 'allow' 'Allows domain in current block-list and config'
|
||||||
extra_command 'check' 'Checks if specified domain is found in current block-list'
|
extra_command 'check' 'Checks if specified domain is found in current block-list'
|
||||||
@@ -1839,6 +1837,7 @@ adb_config_update() {
|
|||||||
load_dl_command
|
load_dl_command
|
||||||
label="${config_update_url##*//}"
|
label="${config_update_url##*//}"
|
||||||
label="${label%%/*}";
|
label="${label%%/*}";
|
||||||
|
[ -n "$enabled" ] || return 0
|
||||||
[ -n "$config_update_enabled" ] || return 0
|
[ -n "$config_update_enabled" ] || return 0
|
||||||
|
|
||||||
if [ "$param" != 'download' ]; then
|
if [ "$param" != 'download' ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user