summaryrefslogtreecommitdiffstats
path: root/src/feed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/feed.sh')
-rw-r--r--src/feed.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/feed.sh b/src/feed.sh
index a4b4d31..3e02058 100644
--- a/src/feed.sh
+++ b/src/feed.sh
@@ -61,6 +61,7 @@ feed_download_cert()
local root="${4}"
local url=
local usign=
+ local opkg_cert=
if ${use_gzip}; then
url="${base_url}/Packages.gz"
@@ -84,9 +85,14 @@ feed_download_cert()
else
usign="${USIGN}"
fi
+ if ${in_place}; then
+ opkg_cert="${builddir}/opkg-cert"
+ else
+ opkg_cert="${OPKG_CERT}"
+ fi
if ! ROOT="${root}" TMPDIR="${root}/tmp" USIGN="${usign}" \
- WGET="${WGET}" GUNZIP="${GUNZIP}" "${OPKG_CERT}" \
+ WGET="${WGET}" GUNZIP="${GUNZIP}" "${opkg_cert}" \
verify "${list_file}.sig" "${list_file}.tmp"; then
rm -f "${list_file}.tmp" "${list_file}.sig"
return 1