diff mbox series

[wrynose,2.18,4/7] fetch2/__init__.py: add filter_regex to default latest_versionstring

Message ID baea2a2c6e1fe8599b3218b97eb913c6a4bf5610.1789683244.git.yoann.congal@smile.fr
State New
Headers show
Series [wrynose,2.18,1/7] fetch2/git.py: add filter_regex parameter to latest_versionstring | expand

Commit Message

Yoann Congal Sept. 17, 2026, 10:17 p.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

Add filter_regex parameter to the default latest_versionstring
function so that fetchers that do not implement this function can also
take the filter_regex parameter.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 52f4d0ffd4a51b8c279eb5df157c90fe7d471a55)
Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index b9373d2a9..d5f9c7d8e 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1735,7 +1735,7 @@  class FetchMethod(object):
     def generate_revision_key(self, ud, d, name):
         return self._revision_key(ud, d, name)
 
-    def latest_versionstring(self, ud, d):
+    def latest_versionstring(self, ud, d, filter_regex=None):
         """
         Compute the latest release name like "x.y.x" in "x.y.x+gitHASH"
         by searching through the tags output of ls-remote, comparing