aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-09-01 16:48:42 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-09-01 16:48:42 -0400
commita68fc5d69c67c5b79206a274e834d1d2856c932d (patch)
tree902b3fb1f27f5e5360af0d7e1f935d3c86b6f129
parent75f4cffcc815429e1cf13d35d17c7954dc6614c2 (diff)
downloadb4-a68fc5d69c67c5b79206a274e834d1d2856c932d.tar.gz
Fix regression that resulted in ignored -p
Looks like at some point we started ignoring the -p flag, so restore this to the expected functionality Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 4414b85..903a74a 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -2564,7 +2564,7 @@ def get_pi_thread_by_msgid(msgid: str, useproject: Optional[str] = None, nocache
# In fact, /all/ naming is arbitrary, but for now we are going to
# hardcode it to lore.kernel.org settings and maybe make it configurable
# in the future, if necessary.
- if loc.path.startswith('/all/'):
+ if loc.path.startswith('/all/') and not useproject:
useproject = 'all'
if useproject:
projurl = '%s://%s/%s' % (loc.scheme, loc.netloc, useproject)