diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2015-10-14 16:54:42 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-24 12:17:12 +0100 |
commit | 2c94853e4c8e92ac5fe4af7b25e2ce8853a4025b (patch) | |
tree | cbb4faa882ce5dc7deb3ef41fe3c0696baaa2025 /meta | |
parent | 7ea2f8aca832433f448a79d103c945a63ac6474b (diff) | |
download | openembedded-core-2c94853e4c8e92ac5fe4af7b25e2ce8853a4025b.tar.gz openembedded-core-2c94853e4c8e92ac5fe4af7b25e2ce8853a4025b.tar.bz2 openembedded-core-2c94853e4c8e92ac5fe4af7b25e2ce8853a4025b.zip |
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".
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package_manager.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index c34e4366bf..5c2130b4db 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -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 |