aboutsummaryrefslogtreecommitdiff
path: root/tools/pkgbase/metalog_reader.lua
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2022-11-17 14:15:20 +0000
committerEd Maste <emaste@FreeBSD.org>2022-11-17 15:28:06 +0000
commitb751fc75bb989ea737c9f1c440d2601e1ed95092 (patch)
tree02b030e87124208edcf6a456ca368bc025ba2bde /tools/pkgbase/metalog_reader.lua
parentb8121324553079ba16bdb0679a636cdd75c4ad61 (diff)
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
Diffstat (limited to 'tools/pkgbase/metalog_reader.lua')
-rw-r--r--tools/pkgbase/metalog_reader.lua1
1 files changed, 1 insertions, 0 deletions
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), ',')