mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
package_manager: support GPG_PATH variable
If defined, use GPG_PATH as the gpg home directory when signing package feeds. This setting is only used by package_manager if package feed singning has been enabled, i.e. PACKAGE_FEED_SIGN="1". (From OE-Core rev: 2c94853e4c8e92ac5fe4af7b25e2ce8853a4025b) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b682fca7be
commit
dbb9af6b0b
@@ -133,8 +133,11 @@ class RpmIndexer(Indexer):
|
||||
if pkgfeed_gpg_name:
|
||||
repomd_file = os.path.join(arch_dir, 'repodata', 'repomd.xml')
|
||||
gpg_cmd = "%s --detach-sign --armor --batch --no-tty --yes " \
|
||||
"--passphrase-file '%s' -u '%s' %s" % (gpg_bin,
|
||||
pkgfeed_gpg_pass, pkgfeed_gpg_name, repomd_file)
|
||||
"--passphrase-file '%s' -u '%s' " % \
|
||||
(gpg_bin, pkgfeed_gpg_pass, pkgfeed_gpg_name)
|
||||
if self.d.getVar('GPG_PATH', True):
|
||||
gpg_cmd += "--homedir %s " % self.d.getVar('GPG_PATH', True)
|
||||
gpg_cmd += repomd_file
|
||||
repo_sign_cmds.append(gpg_cmd)
|
||||
|
||||
rpm_dirs_found = True
|
||||
|
||||
Reference in New Issue
Block a user