build-pkg: remove quotes from filenames with space

close #842
This commit is contained in:
Boris Nagaev 2015-09-11 11:50:42 +03:00
parent e48e09ae0b
commit 71eff46710
1 changed files with 4 additions and 0 deletions

View File

@ -236,6 +236,10 @@ local function gitStatus()
for line in git_st:lines() do
local status, file = line:match('(..) (.*)')
status = trim(status)
if file:sub(1, 1) == '"' then
-- filename with a space is quoted by git
file = file:sub(2, -2)
end
file = 'usr/' .. file
if not fileExists(file) then
log('Missing file: %q', file)