gpgconf: Ignore non-installed components with --apply-profile.
authorWerner Koch <wk@gnupg.org>
Tue, 24 Oct 2017 10:01:07 +0000 (12:01 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 24 Oct 2017 10:01:35 +0000 (12:01 +0200)
commit6e808ae4700dc5e95bf4cc2d5c063df582c234d0
treea6547ccf4cacc3435bf5600a62a76eeb1ea39864
parent560d85ecff4246133d185dc29395f07c918b5556
gpgconf: Ignore non-installed components with --apply-profile.

* tools/gpgconf-comp.c (retrieve_options_from_program): Add arg
only_installed.
(gc_component_retrieve_options): Use this if we want to process all
components.
--

Note that this also also ignores them in --with-defaults.  This is
useful for systems which come without scdaemon.

GnuPG-bug-id: 3313
Signed-off-by: Werner Koch <wk@gnupg.org>
tools/gpgconf-comp.c