diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-27 23:25:15 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-10-27 23:46:12 (GMT) |
commit | 0886967de89393dac593da46ebf108427ab1a1c0 (patch) | |
tree | 5629d73364cfa06a812744ccb16c971417285a19 | |
parent | 97a8038a8bb3e4385dc208f5e397d827552d3fa3 (diff) | |
download | mxe-0886967de89393dac593da46ebf108427ab1a1c0.zip mxe-0886967de89393dac593da46ebf108427ab1a1c0.tar.gz mxe-0886967de89393dac593da46ebf108427ab1a1c0.tar.bz2 |
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.
-rwxr-xr-x | tools/build-pkg.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index a0848d8..3ebd83c 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -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 |