Page MenuHomeFreeBSD

D37412.id113214.diff
No OneTemporary

D37412.id113214.diff

Index: tools/pkgbase/metalog_reader.lua
===================================================================
--- tools/pkgbase/metalog_reader.lua
+++ tools/pkgbase/metalog_reader.lua
@@ -257,6 +257,7 @@
--- @param verbose boolean
--- @param w_notagdirs boolean turn on to also check directories
function Analysis_session(metalog, verbose, w_notagdirs)
+ local stage_root = {}
local files = {} -- map<string, MetalogRow[]>
-- set is map<elem, bool>. if bool is true then elem exists
local pkgs = {} -- map<string, set<string>>
@@ -418,17 +419,13 @@
if files[filename][1].attrs.type ~= 'file' then
goto continue
end
- -- make ./xxx become /xxx so that we can stat
- filename = filename:sub(2)
- local fs = attributes(filename)
+ local fs = attributes(stage_root .. filename)
if fs == nil then
unstatables[#unstatables+1] = filename
goto continue
end
local inode = fs.ino
inm[inode] = inm[inode] or {}
- -- add back the dot prefix
- table.insert(inm[inode], '.'..filename)
::continue::
end
@@ -462,6 +459,9 @@
return table.concat(warn, ''), table.concat(errs, '')
end
+ -- The METALOG file is assumed to be at the top of the stage directory.
+ stage_root = string.gsub(metalog, '/[^/]*$', '/')
+
do
local fp, errmsg, errcode = io.open(metalog, 'r')
if fp == nil then

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 15, 12:58 PM (20 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28741895
Default Alt Text
D37412.id113214.diff (1 KB)

Event Timeline