From 95c6d7f9eefcac7a3fd042917df15166935d690d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 16 Jul 2014 20:03:11 +0200 Subject: =?UTF-8?q?[status]=20don=E2=80=99t=20write=20file=20subpaths=20to?= =?UTF-8?q?=20status=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/mkstatus | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/mkstatus b/scripts/mkstatus index 15cb97c..802b2cd 100755 --- a/scripts/mkstatus +++ b/scripts/mkstatus @@ -128,7 +128,7 @@ hash_all = function (list, acc) local finfo = list[#list] list[#list] = nil if finfo then - local fpath + local fpath, fname if type (finfo) == "table" then local d, f = finfo [1], finfo [2] if lfs.isdir (d) then @@ -136,6 +136,7 @@ hash_all = function (list, acc) else fpath = f end + fname = f else fpath = finfo end @@ -149,7 +150,7 @@ hash_all = function (list, acc) iowrite (sum) iowrite "\"\n" end - acc[#acc+1] = { fpath, sum } + acc[#acc+1] = { fname, sum } return hash_all (list, acc) end return acc -- cgit v1.2.3