git: 1b031475e734 - stable/13 - pkgbase: report type for duplicated METALOG entries
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Nov 2022 03:07:21 UTC
The branch stable/13 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=1b031475e734448cbd2b8bd572accbc61d999b60
commit 1b031475e734448cbd2b8bd572accbc61d999b60
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-11-17 14:15:20 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-11-19 19:12:48 +0000
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
(cherry picked from commit b751fc75bb989ea737c9f1c440d2601e1ed95092)
---
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), ',')