mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 01:17:27 +04:00
adblock-fast: update to 1.2.4-4
Maintainer: me
Compile tested: x86_64, Dell EMC Edge620, OpenWrt 25.12.4
Run tested: x86_64, Dell EMC Edge620, OpenWrt 25.12.4
Description:
Update to PKG_RELEASE 4
- Bump PKG_RELEASE from 2 to 4.
- Add PKG_CPE_ID.
files/lib/adblock-fast/adblock-fast.uc:
- Adjust logic for determining the gzip cache path to align with
the new 'compressed_cache' option.
- Remove dependency on 'compressed_cache_dir' for gzip path
construction.
- Update gzip path calculation in 'get_init_status' to use the new
'compressed_cache' option.
Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit bde6e9a5a0)
Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
1 parent
af8de1438a
commit
bcf4ecc04c
2 files changed
+6
-5
No files matched your search
@@ -5,7 +5,8 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=adblock-fast
|
||||
PKG_VERSION:=1.2.4
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=4
|
||||
PKG_CPE_ID:=cpe:/a:mossdef:adblock-fast
|
||||
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
||||
PKG_LICENSE:=AGPL-3.0-or-later
|
||||
|
||||
|
||||
@@ -2224,8 +2224,8 @@ function _build_procd_data() {
|
||||
result.outputFile = dns_output.file;
|
||||
result.outputCache = dns_output.cache;
|
||||
|
||||
let gzip_path = cfg.compressed_cache_dir
|
||||
? cfg.compressed_cache_dir + '/' + dns_output.gzip
|
||||
let gzip_path = cfg.compressed_cache
|
||||
? dns_output.gzip
|
||||
: '';
|
||||
result.outputGzip = gzip_path;
|
||||
|
||||
@@ -2935,8 +2935,8 @@ function get_init_status(name) {
|
||||
|
||||
// Gzip path (for live file-existence checks)
|
||||
let gzip_path = svc_data?.outputGzip || '';
|
||||
if (!gzip_path && cfg.compressed_cache_dir)
|
||||
gzip_path = cfg.compressed_cache_dir + '/' + dns_output.gzip;
|
||||
if (!gzip_path && cfg.compressed_cache)
|
||||
gzip_path = dns_output.gzip;
|
||||
|
||||
let result = {};
|
||||
result[name] = {
|
||||
|
||||
Reference in new issue
Block a user