From 4a12510af8c2ef1d7b62bbe8e5beb97e9e45cd67 Mon Sep 17 00:00:00 2001 From: Benjamin Lowry Date: Sep 01 2020 19:38:00 +0000 Subject: Replace tildes in goname Match ~ in the pattern on line 50. --- diff --git a/rpm/lua/srpm/go.lua b/rpm/lua/srpm/go.lua index 457b8f1..a251e72 100644 --- a/rpm/lua/srpm/go.lua +++ b/rpm/lua/srpm/go.lua @@ -47,7 +47,7 @@ local function rpmname(goipath, compatid) goname, i = string.gsub(goname, "(%d)%.(%d)", "%1:%2") until i == 0 -- replace various separators rpm does not like with - - goname = string.gsub(goname, "[%._/%-]+", "-") + goname = string.gsub(goname, "[%._/%-~]+", "-") -- because of the Azure sdk goname = string.gsub(goname, "%-for%-go%-", "-") -- Tokenize along - separators and remove duplicates to avoid