forge: keep distprefixes lowercase, even for not primary ones

This commit is contained in:
Nicolas Mailhot 2018-11-08 18:52:17 +01:00 committed by Igor Gnatenko
parent a212174975
commit d6f71146ac

View File

@ -224,7 +224,7 @@ local function forgemeta(suffix, verbose, informative, silent)
end
if (rpm.expand(distprefix) ~= "") then
if not ismain then
distprefix = string.gsub(distprefix, "^%.", ".S")
distprefix = string.gsub(distprefix, "^%.", ".s")
end
fedora.safeset ("distprefix" .. suffix, distprefix, verbose)
end