Part of lp.archivepublisher.publishing View In Hierarchy
Method | __init__ | Undocumented |
Method | add | Ensure that by-hash entries for a single file exist. |
Method | known | Do we know about a file with this name and digest? |
Method | prune | Remove all by-hash entries that we have not been told to add. |
Method | _usable_archive_hashes | Undocumented |
Parameters | name | The name of the file under this directory tree. |
lfa | The ILibraryFileAlias to add. | |
copy_from_path | If not None, copy file content from here rather than fetching it from the librarian. This can be used for newly-added files to avoid needing to commit the transaction before calling this method. |