pkgbase: report error if files are installed multiple times

Files installed by `make installworld` should be installed only once.

PR:		244596
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2023-05-05 13:44:39 -04:00
parent b6271cc0d0
commit 0e04dd3b66

View File

@ -401,8 +401,7 @@ function Analysis_session(metalog, verbose, w_notagdirs)
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'
errs[#errs+1] = 'error: ' .. dupmsg .. '\n'
end
elseif not metalogrows_all_equal(rows, false, true) then
-- same filename (possibly different tags), different metadata, an error