summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 22:47:14 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 22:47:14 (EDT)
commit21da29b24e9676fced7bcc7b398d6c2f9ed369f9 (patch)
tree2bebf77a741eb45ae31b15809adc9902ae3922fe /src
parent74c9ce7a820df0033b254a77142dd5174db7b0f2 (diff)
feed_download_cert(): Fix in-place opkg-cert
Diffstat (limited to 'src')
-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