diff options
| -rw-r--r-- | meta/lib/oe/gpg_sign.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py index 38eb0cb137..683ae5bf43 100644 --- a/meta/lib/oe/gpg_sign.py +++ b/meta/lib/oe/gpg_sign.py | |||
| @@ -35,11 +35,12 @@ class LocalSigner(object): | |||
| 35 | cmd += "--define '%%__gpg %s' " % self.gpg_bin | 35 | cmd += "--define '%%__gpg %s' " % self.gpg_bin |
| 36 | if self.gpg_path: | 36 | if self.gpg_path: |
| 37 | cmd += "--define '_gpg_path %s' " % self.gpg_path | 37 | cmd += "--define '_gpg_path %s' " % self.gpg_path |
| 38 | cmd += ' '.join(files) | ||
| 39 | 38 | ||
| 40 | status, output = oe.utils.getstatusoutput(cmd) | 39 | # Sign in chunks of 100 packages |
| 41 | if status: | 40 | for i in range(0, len(files), 100): |
| 42 | raise bb.build.FuncFailed("Failed to sign RPM packages: %s" % output) | 41 | status, output = oe.utils.getstatusoutput(cmd + ' '.join(files[i:i+100])) |
| 42 | if status: | ||
| 43 | raise bb.build.FuncFailed("Failed to sign RPM packages: %s" % output) | ||
| 43 | 44 | ||
| 44 | def detach_sign(self, input_file, keyid, passphrase_file, passphrase=None, armor=True): | 45 | def detach_sign(self, input_file, keyid, passphrase_file, passphrase=None, armor=True): |
| 45 | """Create a detached signature of a file""" | 46 | """Create a detached signature of a file""" |
