hi all,
I'm doing work at the moment to add 'verify' and 'fix' subcommands to
pkgrepo. The intent is to prevent admins with broken repositories from
having to throw their whole repository away and restore from backups.
Verify walks through all the publishers in a file-based repository,
looking for corrupted content, and reports anything it finds to be broken.
Fix runs a verify first, then any paths marked as broken are moved to a
quarantine area within the repository. A repository rebuild is then
performed. (I still need to do work to quarantine any other manifests
that refer to now-quarantined file content)
There's a '-v' flag to fix, which causes it to print all of the
verification warnings, as well as where it's quarantines the files.
I have no unit tests yet, because I wanted to see if people were happy
with the output before diving into the test cases.
If anyone wants to play around with the changes themselves, there's a
webrev at:
https://cr.opensolaris.org/action/browse/pkg/timf/draft-repo-verify
Included as a note in the webrev, is a txt file showing the output with
both the FancyUNIXProgressTracker as well as the CommandLineProgress
tracker.
If I don't hear anything within a week or so, I'll forge on with writing
tests.
cheers,
tim
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss