[PATCH] opkg-key: Remove --no-options flag from gpg calls.

3 views
Skip to first unread message

Charlie Johnston

unread,
Jan 5, 2023, 5:07:03 PM1/5/23
to opkg-...@googlegroups.com, Charlie Johnston
The opkg-key script was always passing the --no-options
flag to gpg, which uses /dev/null as the options file.
As a result, the opkg gpg.conf file was not getting
used. This change removes that flag so that gpg.conf
in the GPGHOMEDIR for opkg (currently /etc/opkg/gpg/)
will be used if present.

Signed-off-by: Charlie Johnston <charlie....@ni.com>
---
utils/opkg-key | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/opkg-key b/utils/opkg-key
index e395a59..8645ebc 100755
--- a/utils/opkg-key
+++ b/utils/opkg-key
@@ -53,7 +53,7 @@ else
exit 1
fi

-GPG="$GPGCMD --no-options --homedir $GPGHOMEDIR"
+GPG="$GPGCMD --homedir $GPGHOMEDIR"

# Gpg home dir isn't created automatically when --homedir option is used
if [ ! -e "$GPGHOMEDIR" ]; then
--
2.30.2

Alex Stewart

unread,
Jan 5, 2023, 5:16:01 PM1/5/23
to Charlie Johnston, opkg-...@googlegroups.com
ACK. Looks good to me.

I'll pull tomorrow, if there are no objections.
Alex Stewart
Software Engineer - NI Real-Time OS
NI (National Instruments)

alex.s...@ni.com

Alex Stewart

unread,
Jan 9, 2023, 3:21:28 PM1/9/23
to Charlie Johnston, opkg-...@googlegroups.com
Pulled to the `master` ref as cee294e72d257417b5e55ef7a76a0fd15313e46b.

https://git.yoctoproject.org/opkg/commit/?id=cee294e72d257417b5e55ef7a76a0fd15313e46b

Thanks.

On 1/5/23 16:06, Charlie Johnston wrote:
Reply all
Reply to author
Forward
0 new messages