diff options
author | Chris Brannon <cmbrannon@cox.net> | 2008-12-14 12:59:39 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 03:22:36 -0500 |
commit | ac88e90557089763db82038105dd8e50e7ec8773 (patch) | |
tree | b84c2b493ad12552bec03f99bd6400b4e34513ef /src/pacman/conf.h | |
parent | 5b962f0d1c3908d057354df1a42dc2056e8b87f5 (diff) |
Let pacman specify GnuPG's home directory.
GnuPG looks for configuration files and keyrings in its home directory.
For a user, that is typically ~/.gnupg.
This patch causes pacman to use /etc/pacman.d/gnupg/ as the default
GnuPG home. One may override the default using --gpgdir on the command-line
or GPGDir in pacman's configuration file.
Signed-off-by: Chris Brannon <cmbrannon@cox.net>
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r-- | src/pacman/conf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h index 92c379fc..bb11bab2 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -40,6 +40,7 @@ typedef struct __config_t { char *rootdir; char *dbpath; char *logfile; + char *gpgdir; /* TODO how to handle cachedirs? */ unsigned short op_q_isfile; @@ -106,7 +107,8 @@ enum { OP_NEEDED, OP_ASEXPLICIT, OP_ARCH, - OP_PRINTFORMAT + OP_PRINTFORMAT, + OP_GPGDIR }; /* clean method */ |