Feature request: report missing packages on check-packages action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-apt-mirror |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
One bit of information which could add extra confidence re: cleaning packages in the mirror, and fairly easy to add based upon the current code, is information on packages which are listed in the Packages files but not present in the mirrored repository, i.e. missing packages.
In charm.py, AptMirrorCharm.
for p in packages_
return packages_
It would be trivial to add a calculation of missing packages, e.g.:
for p in packages_
return packages_
This seems like information that could be exposed to the user via the check-packages action, or perhaps a separate action if preferred.
Why do I think this is needed? The idea is that this gives extra confidence that all the packages in the repository's Packages* files are indeed actually present and accounted for.
During personal testing with code derived from this charm (with the above changes as well), I've seen one mirror where missing packages were reported - this turned out to be a broken pool symlink in one of the snapshots, which I was able to identify and address, and then afterwards I was able to confirm that the repository data was healthy - that we indeed could find all the packages that were supposedly in each of the Packages files.
Changed in charm-apt-mirror: | |
importance: | Undecided → Wishlist |
Migrate to https:/ /github. com/canonical/ charm-apt- mirror/ issues/ 33