Subject: CVS commit: pkgsrc/pkgtools/pkg_install/files/admin
From: Jonathan Perkin
Date: 2024-03-07 13:22:47
Message id: 20240307122247.5D5BCFA2A@cvs.NetBSD.org

Log Message:
pkg_install: Add sanity checks for pkgdb correctness.

A number of users have hit "Conflicting PLIST" errors in the past that are
almost certainly caused by duplicate PKGBASE entries in the pkgdb, most likely
as a result of unpacking a bootstrap kit over the top of an existing install.

This adds a check to ensure there are no duplicate PKGBASE entries, displaying
an error message with the list of duplicates if they are found, and is called
for the "check", "rebuild", and "rebuild-tree" \ 
commands.

Files:
RevisionActionfile
1.70modifypkgsrc/pkgtools/pkg_install/files/admin/main.c