summaryrefslogtreecommitdiff
path: root/tools/pkgbase
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-05-01 17:25:18 +0000
committerEd Maste <emaste@FreeBSD.org>2023-05-04 16:45:50 +0000
commitf6488428308edeb1fb8fc8aa0eb4e2744db78748 (patch)
treea01ac28cd2262caf82c7c63cffebccefa97cc438 /tools/pkgbase
parent63c903e874da4d8d4a81cba9d7bdfecfe0169598 (diff)
Diffstat (limited to 'tools/pkgbase')
-rw-r--r--tools/pkgbase/metalog_reader.lua18
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/pkgbase/metalog_reader.lua b/tools/pkgbase/metalog_reader.lua
index 3e8cf8461914..9cc5fd727923 100644
--- a/tools/pkgbase/metalog_reader.lua
+++ b/tools/pkgbase/metalog_reader.lua
@@ -392,12 +392,18 @@ function Analysis_session(metalog, verbose, w_notagdirs)
if #rows == 1 then goto continue end
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), ',')
- warn[#warn+1] = '\n'
+ local dupmsg = filename .. ' ' ..
+ rows[1].attrs.type ..
+ ' repeated with same meta: line ' ..
+ table.concat(table_map(rows, function(e) return e.linenum end), ',')
+ if rows[1].attrs.type == "dir" then
+ if verbose then
+ warn[#warn+1] = 'warning: ' .. dupmsg .. '\n'
+ end
+ else
+ -- XXX downgrade to warning until instances in the tree are fixed (PR271178)
+ warn[#warn+1] = 'error: ' .. dupmsg .. '\n'
+ end
elseif not metalogrows_all_equal(rows, false, true) then
-- same filename (possibly different tags), different metadata, an error
errs[#errs+1] = 'error: '..filename