pkgbuild.repo: fix GPG signing with use_passphrase=False

This commit is contained in:
Denys Havrysh 2016-10-21 10:52:46 +03:00
parent 96a1292a7e
commit 409a3100a7
3 changed files with 9 additions and 7 deletions

View file

@ -526,8 +526,8 @@ def make_repo(repodir,
.. versionadded:: 2016.3.0
Use a passphrase with the signing key presented in ``keyid``.
Passphrase is received from Pillar data which has been passed on
the command line. For example:
Passphrase is received from Pillar data which could be passed on the
command line with ``pillar`` parameter. For example:
.. code-block:: bash
@ -579,6 +579,7 @@ def make_repo(repodir,
local_fingerprint = None
local_keyid = None
phrase = ''
# preset passphase and interaction with gpg-agent
gpg_info_file = '{0}/gpg-agent-info-salt'.format(gnupghome)

View file

@ -369,8 +369,8 @@ def make_repo(repodir,
.. versionadded:: 2016.3.0
Use a passphrase with the signing key presented in ``keyid``.
Passphrase is received from Pillar data which has been passed on
the command line. For example:
Passphrase is received from Pillar data which could be passed on the
command line with ``pillar`` parameter. For example:
.. code-block:: bash
@ -405,9 +405,10 @@ def make_repo(repodir,
'''
SIGN_PROMPT_RE = re.compile(r'Enter pass phrase: ', re.M)
local_keyid = None
define_gpg_name = ''
local_keyid = None
local_uids = None
phrase = ''
if keyid is not None:
## import_keys

View file

@ -336,8 +336,8 @@ def repo(name,
.. versionadded:: 2016.3.0
Use a passphrase with the signing key presented in ``keyid``.
Passphrase is received from Pillar data which has been passed on
the command line. For example:
Passphrase is received from Pillar data which could be passed on the
command line with ``pillar`` parameter. For example:
.. code-block:: bash