git: b751fc75bb98 - main - pkgbase: report type for duplicated METALOG entries
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Nov 2022 15:37:19 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=b751fc75bb989ea737c9f1c440d2601e1ed95092 commit b751fc75bb989ea737c9f1c440d2601e1ed95092 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-11-17 14:15:20 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-11-17 15:28:06 +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 --- 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), ',')