build-pkg: replace _ with . in versions

Underscores in versions were previously replaced with dashes.
Example: 4_1_3 -> 4-1-3 (package winpcap).
"-3" is interpreted as Debian patch version, which is wrong.
This commit is contained in:
Boris Nagaev 2015-10-28 00:25:15 +01:00
parent 97a8038a8b
commit 0886967de8
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ local function nameToDebian(item)
end
local function protectVersion(ver)
ver = ver:gsub('_', '-')
ver = ver:gsub('_', '.')
if ver:sub(1, 1):match('%d') then
return ver
else