xbps-pkgdb: add alternatives check

Closes #66
This commit is contained in:
Duncaen
2019-03-13 14:51:37 +01:00
parent ea2cb1d369
commit bd616aa901
5 changed files with 205 additions and 4 deletions

View File

@@ -12,8 +12,8 @@ The
.Nm
utility can check/fix issues and modify the package database (pkgdb).
It's able to check for missing dependencies, modified files and symlinks,
and more errors that have been fixed in newer versions of xbps. A mode to update
the format to the latest version is also available.
alternatives and more errors that have been fixed in newer versions of xbps.
A mode to update the format to the latest version is also available.
This is the list of things that
.Nm
currently does:
@@ -29,6 +29,8 @@ compared and checked if they differ.
For symbolic links the target file is checked that it has not been modified.
.It Sy DEPENDENCIES CHECK
Checks that all required dependencies for a package are resolved.
.It Sy ALTERNATIVES CHECK
Checks that all alternatives symlinks for set alternatives groups are correct.
.It Sy OBSOLETE METADATA CHECK
Checks that the package database does not contain obsolete data from previous
XBPS versions and removes them if found.