[4/5] package-qa: Ensure '_' is replaced by '-'
diff mbox

Message ID 4014368E77617E44944113A4A656BD684605479D@VMPREVAS2.prevas.se
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Kim B√łndergaard Poulsen Jan. 3, 2014, 9:53 a.m. UTC
I think there is minor issue. Not that it destroys anything though. Just doing the same stuff more times.

It relates to the change in line 620 which isn't required at all due to the change in line 483.

Line 483 ensure _/- conversion always happen when sonamify() is called.
Line 620 try do the same once more.

Patch
diff mbox

diff --git a/classes/package-qa.oeclass b/classes/package-qa.oeclass
index 4c6b8f2..25a9ef7 100644
--- a/classes/package-qa.oeclass
+++ b/classes/package-qa.oeclass
@@ -483,6 +483,7 @@  def do_packageqa(d):
         sonamify_re2 = re.compile(r"(.*?)(-[\d\.]*)?$")
         def sonamify(soname):
             def _sonamify(s):
+                s = s.replace("_","-")

Kim: This change ensure conversion always happen when sonamify is called.
                 m = sonamify_re.match(s)