summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-12-16 00:06:37 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-12-16 00:06:37 (GMT)
commit789545ff1affec91e58908e7f84b4ff1fae9c508 (patch)
treed03c905c9b35de57b3421039767970cff7dc7088
parent5b3ca65fa50fb924c5263bdf425dac56a2f637be (diff)
downloadmxe-789545ff1affec91e58908e7f84b4ff1fae9c508.zip
mxe-789545ff1affec91e58908e7f84b4ff1fae9c508.tar.gz
mxe-789545ff1affec91e58908e7f84b4ff1fae9c508.tar.bz2
build-pkg: fix .deb installation
The installation failed with the following note: > Noting disappearance of mxe-requirements, > which has been completely replaced. Add an empty file mxe-requirements.dummy.$release to prevent this.
-rwxr-xr-xtools/build-pkg.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 44fce03..cdcf37c 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -692,11 +692,15 @@ local function makeMxeRequirementsPackage(release)
-- Jessie+
table.insert(deps, 'libtool-bin')
end
- local files = {}
+ local dummy_name = 'mxe-requirements.dummy.' .. release
+ local dummy = io.open(dummy_name, 'w')
+ dummy:close()
+ local files = {dummy_name}
local d1 = "MXE requirements package"
local d2 = MXE_REQUIREMENTS_DESCRIPTION2
local dst = release
makePackage(name, files, deps, ver, d1, d2, dst)
+ os.remove(dummy_name)
end
local MXE_SOURCE_DESCRIPTION2 =