[PATCH 2/2] apibuild: remove 'v' from pattern matching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This makes madatory to *not* add 'v' to version number.

Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx>
---
 scripts/apibuild.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/apibuild.py b/scripts/apibuild.py
index ddc611ec58..2a343208c5 100755
--- a/scripts/apibuild.py
+++ b/scripts/apibuild.py
@@ -2218,7 +2218,7 @@ class docBuilder:
                               return_comment="") -> (str, str, str):
         since = ""
         if comment is not None:
-            comment_match = re.search(r"\(?Since: v?(\d+\.\d+\.\d+\.?\d?)\)?",
+            comment_match = re.search(r"\(?Since: (\d+\.\d+\.\d+\.?\d?)\)?",
                                       comment)
             if comment_match:
                 # Remove Since tag from the comment
@@ -2229,7 +2229,7 @@ class docBuilder:
                 since = comment_match.group(1)
 
         if since == "" and return_comment is not None:
-            return_match = re.search(r"\(?Since: v?(\d+\.\d+\.\d+\.?\d?)\)?",
+            return_match = re.search(r"\(?Since: (\d+\.\d+\.\d+\.?\d?)\)?",
                                      return_comment)
             if return_match:
                 # Remove Since tag from the comment
-- 
2.35.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux