From 21da29b24e9676fced7bcc7b398d6c2f9ed369f9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 16 Apr 2019 22:47:14 -0400 Subject: feed_download_cert(): Fix in-place opkg-cert --- (limited to 'src/feed.sh') 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 -- cgit v0.9.1