diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/gpg_sign.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py index 5c7985a856..008478dfeb 100644 --- a/meta/lib/oe/gpg_sign.py +++ b/meta/lib/oe/gpg_sign.py | |||
@@ -27,7 +27,7 @@ class LocalSigner(object): | |||
27 | raise bb.build.FuncFailed('Failed to export gpg public key (%s): %s' % | 27 | raise bb.build.FuncFailed('Failed to export gpg public key (%s): %s' % |
28 | (keyid, output)) | 28 | (keyid, output)) |
29 | 29 | ||
30 | def sign_rpms(self, files, keyid, passphrase, digest, fsk=None, fsk_password=None): | 30 | def sign_rpms(self, files, keyid, passphrase, digest, sign_chunk, fsk=None, fsk_password=None): |
31 | """Sign RPM files""" | 31 | """Sign RPM files""" |
32 | 32 | ||
33 | cmd = self.rpm_bin + " --addsign --define '_gpg_name %s' " % keyid | 33 | cmd = self.rpm_bin + " --addsign --define '_gpg_name %s' " % keyid |
@@ -45,9 +45,9 @@ class LocalSigner(object): | |||
45 | if fsk_password: | 45 | if fsk_password: |
46 | cmd += "--define '_file_signing_key_password %s' " % fsk_password | 46 | cmd += "--define '_file_signing_key_password %s' " % fsk_password |
47 | 47 | ||
48 | # Sign packages | 48 | # Sign in chunks |
49 | for f in files: | 49 | for i in range(0, len(files), sign_chunk): |
50 | status, output = oe.utils.getstatusoutput(cmd + ' ' + f) | 50 | status, output = oe.utils.getstatusoutput(cmd + ' '.join(files[i:i+sign_chunk])) |
51 | if status: | 51 | if status: |
52 | raise bb.build.FuncFailed("Failed to sign RPM packages: %s" % output) | 52 | raise bb.build.FuncFailed("Failed to sign RPM packages: %s" % output) |
53 | 53 | ||