Skip to content

Commit

Permalink
FL-3242: fix gpg key add by Clemens Kaposi
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Vinichenko committed Jun 24, 2016
1 parent c93da4b commit e0012cf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions keychain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Copyright 1999-2005 Gentoo Foundation
# Copyright 2007 Aron Griffis <[email protected]>
# Copyright 2009-2015 Funtoo Solutions, Inc.
# Copyright 2009-2016 Funtoo Solutions, Inc.
# lockfile() Copyright 2009 Parallels, Inc.

# Distributed under the terms of the GNU General Public License v2
Expand Down Expand Up @@ -911,13 +911,10 @@ parse_mykeys() {

# Check for gpg
if wantagent gpg; then
if [ -z "$pm_gpgsecrets" ]; then
pm_gpgsecrets="$(gpg --list-secret-keys 2>/dev/null | cut -d/ -f2 | cut -d' ' -f1 | xargs)"
[ -z "$pm_gpgsecrets" ] && pm_gpgsecrets='/' # arbitrary
gpg --list-secret-keys "$pm_k" >/dev/null 2>&1
if [ $? -eq 0 ]; then
add_gpgkey "$pm_k" ; continue
fi
case " $pm_gpgsecrets " in *" $pm_k "*)
add_gpgkey "$pm_k" ; continue ;;
esac
fi

$ignoreopt || warn "can't find $pm_k; skipping"
Expand Down

0 comments on commit e0012cf

Please sign in to comment.