From b751fc75bb989ea737c9f1c440d2601e1ed95092 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 17 Nov 2022 09:15:20 -0500 Subject: [PATCH] pkgbase: report type for duplicated METALOG entries Duplicate METALOG file entries are more of a concern than duplicate directories. The metalog check tool previously did not include the entry type in the warnings, making it hard to find the ones of concern. Sponsored by: The FreeBSD Foundation --- tools/pkgbase/metalog_reader.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/pkgbase/metalog_reader.lua b/tools/pkgbase/metalog_reader.lua index 02f8c4ab65bd..72cfcf46c95b 100644 --- a/tools/pkgbase/metalog_reader.lua +++ b/tools/pkgbase/metalog_reader.lua @@ -387,6 +387,7 @@ function Analysis_session(metalog, verbose, w_notagdirs) local iseq, offby = metalogrows_all_equal(rows) if iseq then -- repeated line, just a warning warn[#warn+1] = 'warning: '..filename + .. ' ' .. rows[1].attrs.type ..' repeated with same meta: line ' ..table.concat( table_map(rows, function(e) return e.linenum end), ',')