forked from funtoo/keychain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FL-3242: fix gpg key add by Clemens Kaposi
- Loading branch information
Oleg Vinichenko
committed
Jun 24, 2016
1 parent
c93da4b
commit e0012cf
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" | ||
|