#67 rpmname: fix use_new_versioning regex
Merged 9 months ago by gotmax23. Opened 9 months ago by gotmax23.
gotmax23/go-rpm-macros rpmname-fix  into  master

file modified
+1 -1
@@ -76,7 +76,7 @@ 

      -- If the base package name ends with a digit, a single underscore (_) MUST

      -- be appended to the name, and the version MUST be appended to that, in

      -- order to avoid confusion over where the name ends and the version begins.

-     result = string.gsub(result, "([^-]*)(%-?)([%.%d]+)$", function(prior, hyphen, version)

+     result = string.gsub(result, "([^-]*)(%-)([%.%d]+)$", function(prior, hyphen, version)

        if string.find(prior, "%d$") then

          return prior .. "_" .. version

        else

filippo.io/edwards25519 should be golang-filippo-edwards25519, not
golang-filippo-edwards2551_9.

Fixes: https://pagure.io/GoSIG/go2rpm/issue/37
Relates: https://gitlab.com/fedora/sigs/go/go2rpm/-/commit/8b7ae828e5e4099069a7f1976e8d1c2a5ed9da3c

Pull-Request has been merged by gotmax23

9 months ago
Metadata