summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-08-03 20:35:33 (GMT)
committerGitHub <noreply@github.com>2016-08-03 20:35:33 (GMT)
commita644700c8cd9246df80200f4c6444c108a8fceee (patch)
treee0142858fcfbf173561bef4aa379d8cf1b44ec99
parent3f5b2e22b5c21341771e310bc0b9e1232e053fa7 (diff)
parent1a59d510a646ff81b3e72d2d745d2f50ee8264c6 (diff)
downloadmxe-a644700c8cd9246df80200f4c6444c108a8fceee.zip
mxe-a644700c8cd9246df80200f4c6444c108a8fceee.tar.gz
mxe-a644700c8cd9246df80200f4c6444c108a8fceee.tar.bz2
Merge pull request #1473 from LuaAndC/build-pkg-fix-if-1st-pass-breaks
build-pkg: fix crash if package breaks in 1st pass
-rwxr-xr-xtools/build-pkg.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index c640404..a2e1242 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -644,10 +644,13 @@ local function comparePasses(item, new_files, prev_file2item, prev_files)
end
files_set[file] = true
end
- for _, file in ipairs(prev_files) do
- if not files_set[file] then
- log('Item %s installs a file on first pass only: %s',
- item, file)
+ if prev_files then
+ -- prev_files is nil, if the first pass failed
+ for _, file in ipairs(prev_files) do
+ if not files_set[file] then
+ log('Item %s installs a file on first pass only: %s',
+ item, file)
+ end
end
end
-- TODO compare contents of files (nm for binaries)