summaryrefslogtreecommitdiff
path: root/tools/pkgbase/metalog_reader.lua
AgeCommit message (Collapse)Author
2023-08-16Remove $FreeBSD$: one-line lua tagWarner Losh
Remove /^--\s*\$FreeBSD\$.*$\n/
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
2023-05-09pkgbase: report error if files are installed multiple timesEd Maste
Files installed by `make installworld` should be installed only once. PR: 244596 Sponsored by: The FreeBSD Foundation
2023-05-01pkgbase: hide duplicate METALOG directory warnings under verboseEd Maste
Creating directories multiple times is an inherent side effect of the way installation is done. Hide warnings from duplicate directory entries (with identical metadata) under metalog_reader's verbose mode. Duplicate file entries are always reported. They currently generate warnings but will be switched to errors once the few instances currently in the tree are fixed. PR: 244596, 271178 Reviewed by: kevans Sponsored By: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39898
2022-11-25pkgbase: report errors via metalog reader exit statusEd Maste
Reviewed by: kevans Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37482
2022-11-17pkgbase: report type for duplicated METALOG entriesEd Maste
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
2022-11-17pkgbase: examine METALOG files relative to stage root directoryEd Maste
Previously we stripped the '.' from the beginning of each METALOG entry to determine the path to stat. This meant that we examined files on the build host, not the staged files. Instead, strip off the last part of the specified METALOG pathname to find the stage root directory, and stat files relative to that. Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37412
2022-03-28pkgbase: Fix a typo in a source code commentGordon Bergling
- s/begining/beginning/ MFC after: 3 days
2020-05-10Add pkgbase METALOG parse/check toolEd Maste
`metalog.lua` is a script that reads METALOG file created by pkgbase (make packages) and generates reports about the installed system and issues. This was developed as part of Yang's W2020 University of Waterloo co- operative education term with the FreeBSD Foundation. kevans provided some initial review; we will iterate on it in the tree. Submitted by: Yang Wang <2333@outlook.jp> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24563 Notes: svn path=/head/; revision=360877