* CC/uclient-fetch compatibility fix
Signed-off-by: Dirk Brenken <dev@brenken.org>
include $(TOPDIR)/rules.mk
PKG_NAME:=adblock
-PKG_VERSION:=1.5.3
+PKG_VERSION:=1.5.4
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
#
LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
-adb_scriptver="1.5.3"
+adb_scriptver="1.5.4"
adb_mincfgver="2.5"
adb_hotplugif=""
adb_lanif="lan"
if [ "${package_ok}" = "true" ]
then
adb_fetch="$(which uclient-fetch)"
- fetch_parm="-q --timeout=${adb_fetchttl}"
- response_parm="--spider"
+ fetch_parm="-q"
+ response_parm=
fi
fi
fi
if [ "${src_name}" = "blacklist" ]
then
url_time="$(date -r "${url}")"
- else
+ elif [ -n "${response_parm}" ]
+ then
url_time="$(${adb_fetch} ${fetch_parm} ${response_parm} "${url}" 2>&1 | awk '$0 ~ /Last-Modified/ {printf substr($0,18)}')"
fi
if [ -z "${url_time}" ]