From ea15ef0729a95352085585bf11e177af37ce8162 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Jan 17 2024 19:57:59 +0000 Subject: processcp.py: handle "wrangler" being lowercase The Change template uses "" as a placeholder for various items, including the tracker bug link. The script tries to handle when this placeholder is present and not treat it like it's an *actual* tracker bug link (or issue link or whatever). In https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_3 for some reason a slightly different placeholder string - "" - is used. That broke this detection, because the detection looks for "Wrangler" with a capital W. Let's handle this, in case anyone else does it. Signed-off-by: Adam Williamson --- diff --git a/changes/processcp.py b/changes/processcp.py index b5f4334..bbeba57 100644 --- a/changes/processcp.py +++ b/changes/processcp.py @@ -311,7 +311,7 @@ if __name__ == "__main__": docs_contact = "" print(page.get("tracker bug")) - if page.get("tracker bug").decode("utf-8").find("Wrangler") > 0: + if page.get("tracker bug").decode("utf-8").lower().find("wrangler") > 0: buglink = "" else: for bug in page.get("tracker bug").decode("utf-8").split():