Part of lp.soyuz.scripts.ftpmaster View In Hierarchy
It provides the backend for retrieving files from Librarian or the 'sync source' location. Also provides a method to check the downloaded files integrity. 'aptMD5Sum' is provided as a classmethod during the integration time.
Method | __init__ | Store local context. |
Class Method | generateMD5Sum | Undocumented |
Method | fetchFileFromLibrarian | Fetch file from librarian. |
Method | fetchLibrarianFiles | Try to fetch files from Librarian. |
Method | fetchSyncFiles | Fetch files from the original sync source. |
Method | checkDownloadedFiles | Check md5sum and size match Source. |
Store local context. files: a dictionary where the keys are the filename and the value another dictionary with the file informations. origin: a dictionary similar to 'files' but where the values contain information for download files to be synchronized logger: a logger downloader: a callable that fetchs URLs, 'downloader(url, destination)' todistro: target distribution object
Store the contents in local path with the original filename. Return the fetched filename if it was present in Librarian or None if it wasn't.
It raises SyncSourceError if anything else then an orig tarball was found in Librarian. Return the names of the files retrieved from the librarian.