Fix non-bc change

svn path=/nixos/trunk/; revision=21326
This commit is contained in:
Yury G. Kudryashov 2010-04-26 15:57:06 +00:00
parent 69697a35bb
commit ce15e270f2

View File

@ -43,7 +43,7 @@ let
${optionalString cfg.startGnuPGAgent ''
if test -z "$SSH_AUTH_SOCK"; then
# Restart this script as a child of the GnuPG agent.
exec "${pkgs.gnupg2}/bin/gpg-agent" \
exec "${if pkgs ? gnupg2 then pkgs.gnupg2 else pkgs.gnupg}/bin/gpg-agent" \
--enable-ssh-support --daemon \
--pinentry-program "${pkgs.pinentry}/bin/pinentry-gtk-2" \
--write-env-file "$HOME/.gpg-agent-info" \