[pacman-dev] [PATCH] pacman-key: --init: correct creation of gpg.conf

Pang Yan Han pangyanhan at gmail.com
Sun Jul 10 00:26:42 EDT 2011


Signed-off-by: Pang Yan Han <pangyanhan at gmail.com>
---
NOTE: To be applied on top of allan/working

 scripts/pacman-key.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index 3ed42e6..cb108ac 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -105,7 +105,7 @@ initialize() {
 	chmod 644 ${PACMAN_KEYRING_DIR}/{{pub,sec}ring,trustdb}.gpg
 
 	# gpg.conf
-	[[ ! -f ${PACMAN_KEYRING_DIR}/gpg.conf ]] || touch  ${PACMAN_KEYRING_DIR}/gpg.conf
+	[[ -f ${PACMAN_KEYRING_DIR}/gpg.conf ]] || touch  ${PACMAN_KEYRING_DIR}/gpg.conf
 	chmod 644 ${PACMAN_KEYRING_DIR}/gpg.conf
 	if ! grep -w -q "lock-never" ${PACMAN_KEYRING_DIR}/gpg.conf &>/dev/null; then
 		echo "lock-never" >> ${PACMAN_KEYRING_DIR}/gpg.conf
-- 
1.7.6.132.g8b11f



More information about the pacman-dev mailing list