Part of lp.archivepublisher.deathrow View In Hierarchy
DeathRow will remove archive files from disk if they are marked for removal in the publisher tables, and if they are no longer referenced by other packages.
Method | __init__ | Undocumented |
Method | reap | Reap packages that should be removed from the distribution. |
Method | canRemove | Check if given (filename, MD5) can be removed from the pool. |
Method | _collectCondemned | Return the condemned source and binary publications as a tuple. |
Method | _tryRemovingFromDisk | Take the list of publishing records provided and unpublish them. |
Method | _markPublicationRemoved | Undocumented |
Looks through all packages that are in condemned states and have scheduleddeletiondate is in the past, try to remove their files from the archive pool (which may be impossible if they are used by other packages which are published), and mark them as removed.
Return all the SourcePackagePublishingHistory
and
BinaryPackagePublishingHistory
records that are eligible for
removal ('condemned') where the source/binary package that they
refer to is not published somewhere else.
Both sources and binaries are lists.
Check the archive reference-counter implemented in:
SourcePackagePublishingHistory
or
BinaryPackagePublishingHistory
.
Only allow removal of unnecessary files.