Part of lp.soyuz.scripts.ftpmaster View In Hierarchy
The 'distroarchseries' argument is mandatory and 'filepath' is optional.
'filepath' is required by some allowed actions as source or destination,
ChrootManagerError will be raised if anything wrong occurred in this class, things like missing parameter or infrastructure pieces not in place.
Method | __init__ | Undocumented |
Method | add | Create a new PocketChroot record. |
Method | update | Update a PocketChroot record. |
Method | remove | Overwrite existing PocketChroot file to none. |
Method | get | Download chroot file from Librarian and store. |
Method | _upload | Upload the self.filepath contents to Librarian. |
Method | _getPocketChroot | Retrive PocketChroot record. |
Method | _update | Base method for add and update action. |
Return the respective ILibraryFileAlias instance. Raises ChrootManagerError if it could not be found.
Return the respective IPocketChroot instance. Raises ChrootManagerError if it could not be found.
Raises ChrootManagerError if self.filepath isn't set. Update of pre-existing PocketChroot record will be automatically handled. It's a bind to the self.update method.
Raises ChrootManagerError if filepath isn't set Creation of non-existing PocketChroot records will be automatically handled.