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||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.|
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
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.
You should only pass in entries you want to be unpublished because this will result in the files being removed if they're not otherwise in use.