aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-25 16:57:33 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-25 16:58:26 -0500
commita7f6d8bcae0ef3632f9d3cc36729d22621bb109c (patch)
treee0bf4742347949f2978a7ccd2bf28049a7a83832
parent91380bf3e5488e710060dabf099d3a047050f0d1 (diff)
downloadb4-a7f6d8bcae0ef3632f9d3cc36729d22621bb109c.tar.gz
Unbreak thanks-tracking
Don't forget to increment where we are when doing "continue". Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/mbox.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 4736c24..9488511 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -258,6 +258,7 @@ def thanks_record_am(lser, cherrypick=None):
for pmsg in lser.patches:
if pmsg is None:
+ at += 1
continue
if lmsg is None:
@@ -265,16 +266,19 @@ def thanks_record_am(lser, cherrypick=None):
if not pmsg.has_diff:
# Don't care about the cover letter
+ at += 1
continue
if cherrypick is not None and at not in cherrypick:
logger.debug('Skipped non-cherrypicked: %s', at)
+ at += 1
continue
pmsg.load_hashes()
if pmsg.attestation is None:
logger.debug('Unable to get hashes for all patches, not tracking for thanks')
return
+
prefix = '%s/%s' % (str(pmsg.counter).zfill(padlen), pmsg.expected)
patches.append((pmsg.subject, pmsg.pwhash, pmsg.msgid, prefix))
at += 1