Lines Matching full:local

31 	local filename
32 local printall, checkonly, pkgonly =
34 local dcount, dsize, fuid, fgid, fid =
36 local verbose = false
37 local w_notagdirs = false
39 local i = 1
86 local sess = Analysis_session(filename, verbose, w_notagdirs)
88 local errors
114local sn = 'Usage: '..arg[0].. ' [-h] [-a | -c | -p [-count] [-size] [-f...]] [-W...] metalog-path…
152 local dupwarn, duperr = sess.dup_report()
155 local inodewarn, inodeerr = sess.inode_report()
163 local sortedk = {}
166 local i = 0
176 local res = {}
200 local res, attrs = {}, {}
201 local filename, rest = line:match('^(%S+) (.+)$')
205 local k, v = attrpair:match('^(.-)=(.+)')
220 local __eq = function(l, o)
235 local bol, offby = __eq(v, rows[1])
243 local ext, pkgname, pkgend = '', '', ''
265 local stage_root = {}
266 local files = {} -- map<string, MetalogRow[]>
268 local pkgs = {} -- map<string, set<string>>
271 -----local nopkg = {} -- set<string>
273 local swarn = {}
275 local serrs = {}
280 local function pkg_size(pkgname)
281 local filecount, sz = 0, 0
283 local rows = files[filename]
290 local row = rows[1]
301 local function pkg_ismode(pkgname, mode)
314 local function pkg_issetuid(pkgname)
320 local function pkg_issetgid(pkgname)
326 local function pkg_issetid(pkgname)
332 local function pkg_report_helper_table()
333 local res = {}
346 local function pkg_report_full()
347 local sb = {}
368 local function pkg_report_simple(have_count, have_size, filters)
370 local sb = {}
372 local pred = true
388 local function dup_report()
389 local warn, errs = {}, {}
392 local iseq, offby = metalogrows_all_equal(rows)
394 local dupmsg = filename .. ' ' ..
422 local function inode_report()
424 local attributes = require('lfs').attributes
425 local inm = {} -- map<number, string[]>
426 local unstatables = {} -- string[]
433 local fs = attributes(stage_root .. filename)
438 local inode = fs.ino
444 local warn, errs = {}, {}
448 local rows = table_map(filenames, function(e)
451 local iseq, offby = metalogrows_all_equal(rows, true, true)
478 local fp, errmsg, errcode = io.open(metalog, 'r')
485 local firsttimes = {} -- set<string>
486 local lineno = 0
488 -----local isinpkg = false
495 local data = MetalogRow(line, lineno)