From 65a2d82b029fc2dfba4db6a8ec86554c9debff8f Mon Sep 17 00:00:00 2001 From: sixg0000d Date: Apr 20 2021 14:49:08 +0000 Subject: srpm/go.lua: avoid remove char 'v' from project name --- diff --git a/rpm/lua/srpm/go.lua b/rpm/lua/srpm/go.lua index a251e72..a4a8148 100644 --- a/rpm/lua/srpm/go.lua +++ b/rpm/lua/srpm/go.lua @@ -67,7 +67,8 @@ local function rpmname(goipath, compatid) result = string.gsub(result, ":", ".") -- some projects have a name that end up in a number, and *also* add release -- numbers on top of it, keep a - prefix before version strings - result = string.gsub(result, "%-v([%.%d])", "-%1") + result = string.gsub(result, "%-v([%.%d])$", "-%1") + result = string.gsub(result, "%-v([%.%d]%-)", "-%1") return(result) end