summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/package_manager.py
diff options
context:
space:
mode:
authorIoan-Adrian Ratiu <adrian.ratiu@ni.com>2016-03-10 12:03:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-11 16:50:45 +0000
commit81d58d6b2415e5e74e00b3b9f1fa43fdd8b146ca (patch)
treedf3d795f494cd8828ea9f996cfe9747820228b71 /meta/lib/oe/package_manager.py
parent42f612c42a8b6cb73a16798d22d3332ec9c8dfb3 (diff)
downloadpoky-81d58d6b2415e5e74e00b3b9f1fa43fdd8b146ca.tar.gz
sign_package_feed: add feed signature type
Signing package feeds will default to ascii armored signatures (ASC) the other option being binary (BIN). This is for both rpm and ipk backends. (From OE-Core rev: 862a3892feb2628282e1d6f2e4498a7a3bd60cbf) Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r--meta/lib/oe/package_manager.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 25c38a5642..607e7c6eaa 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -141,9 +141,12 @@ class RpmIndexer(Indexer):
141 # Sign repomd 141 # Sign repomd
142 if signer: 142 if signer:
143 for repomd in repomd_files: 143 for repomd in repomd_files:
144 feed_sig_type = self.d.getVar('PACKAGE_FEED_GPG_SIGNATURE_TYPE', True)
145 is_ascii_sig = (feed_sig_type.upper() != "BIN")
144 signer.detach_sign(repomd, 146 signer.detach_sign(repomd,
145 self.d.getVar('PACKAGE_FEED_GPG_NAME', True), 147 self.d.getVar('PACKAGE_FEED_GPG_NAME', True),
146 self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE', True)) 148 self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE', True),
149 armor=is_ascii_sig)
147 150
148 151
149class OpkgIndexer(Indexer): 152class OpkgIndexer(Indexer):
@@ -192,10 +195,13 @@ class OpkgIndexer(Indexer):
192 bb.fatal('%s' % ('\n'.join(result))) 195 bb.fatal('%s' % ('\n'.join(result)))
193 196
194 if signer: 197 if signer:
198 feed_sig_type = self.d.getVar('PACKAGE_FEED_GPG_SIGNATURE_TYPE', True)
199 is_ascii_sig = (feed_sig_type.upper() != "BIN")
195 for f in index_sign_files: 200 for f in index_sign_files:
196 signer.detach_sign(f, 201 signer.detach_sign(f,
197 self.d.getVar('PACKAGE_FEED_GPG_NAME', True), 202 self.d.getVar('PACKAGE_FEED_GPG_NAME', True),
198 self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE', True)) 203 self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE', True),
204 armor=is_ascii_sig)
199 205
200 206
201class DpkgIndexer(Indexer): 207class DpkgIndexer(Indexer):