diff options
-rw-r--r-- | packaging/building-blocks.spec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/building-blocks.spec b/packaging/building-blocks.spec index 2292be7..d565160 100644 --- a/packaging/building-blocks.spec +++ b/packaging/building-blocks.spec @@ -156,6 +156,7 @@ end}} if (string.sub(line, 1, 10) == 'adaptation') then \ elseif (string.sub(line, 1, 4) == 'boot') then \ elseif (prefix == rpm.expand("%{2}")) then \ + line = string.gsub(line, "-", "_") print("Suggests: "..rpm.expand("%{3}").."zblock_"..line) \ print("\\n") \ end \ @@ -172,7 +173,7 @@ end}} if (string.sub(line, 1, 10) == 'adaptation') then \ elseif (string.sub(line, 1, 4) == 'boot') then \ elseif (prefix == rpm.expand("%{2}")) then \ - local pkg = rpm.expand("%{3}").."zblock_"..line \ + local pkg = rpm.expand("%{3}").."zblock_"..string.gsub(line, "-", "_") \ local summary_available = 0 \ local filename = rpm.expand("%{1}").."/"..f \ print("\\n") \ |