macros.forge: drop additional dot to match current Guidelines
This commit is contained in:
parent
22833277e6
commit
30ef72bedf
@ -256,7 +256,7 @@ if (distprefix == "") then
|
|||||||
distprefix = string.sub(rpm.expand("%{?commit}"), 1, 7)
|
distprefix = string.sub(rpm.expand("%{?commit}"), 1, 7)
|
||||||
end
|
end
|
||||||
if (distprefix ~= "") then
|
if (distprefix ~= "") then
|
||||||
local dist = ".%{?date}%{!?date:%([ -r %{_sourcedir}/%{archivename}.%{archiveext} ] && date +%Y%m%d -u -r %{_sourcedir}/%{archivename}.%{archiveext})}.%{scm}" .. string.gsub(distprefix, "-",".") .. rpm.expand("%{?dist}")
|
local dist = ".%{?date}%{!?date:%([ -r %{_sourcedir}/%{archivename}.%{archiveext} ] && date +%Y%m%d -u -r %{_sourcedir}/%{archivename}.%{archiveext})}%{scm}" .. string.gsub(distprefix, "-",".") .. rpm.expand("%{?dist}")
|
||||||
explicitset("dist", dist)
|
explicitset("dist", dist)
|
||||||
end
|
end
|
||||||
-- Final spec variable summary if the macro was called with -i
|
-- Final spec variable summary if the macro was called with -i
|
||||||
|
Loading…
Reference in New Issue
Block a user