diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-21 14:10:26 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-21 14:10:26 -0400 |
commit | 10dcc9f8fe8bce21d3f3cf465070736da207fd75 (patch) | |
tree | 4543dbd2d19d0cd82a542c801ebf9c7033e7d2b6 | |
parent | cb6885d91c9894b0db7e01af52721992a1b726dd (diff) | |
download | b4-10dcc9f8fe8bce21d3f3cf465070736da207fd75.tar.gz |
Handle partial reroll of series without cover
A series may not have a cover letter, so properly handle that situation.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/__init__.py | 3 | ||||
-rw-r--r-- | b4/mbox.py | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py index fc79e7f..eed101a 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -273,6 +273,9 @@ class LoreMailbox: logger.debug('Reconstituting a partial reroll') at = 0 for patch in lser.patches: + if pser.patches[at] is None: + at += 1 + continue if patch is None: ppatch = copy.deepcopy(pser.patches[at]) ppatch.revision = lser.revision @@ -577,6 +577,8 @@ def main(cmdargs): if not len(msgs): logger.critical('Could not find %s in %s', msgid, cmdargs.localmbox) sys.exit(1) + else: + msgs = in_mbx else: logger.critical('Mailbox %s does not exist', cmdargs.localmbox) sys.exit(1) |