mini_buildd.ftpd module¶
- class mini_buildd.ftpd.Incoming¶
Bases:
object
Tool collection for some extra incoming directory handling.
- classmethod is_changes(file_name)¶
- classmethod get_changes()¶
- classmethod remove_cruft_files(files)¶
Remove all files from list of files not mentioned in a changes file.
- classmethod remove_cruft()¶
Remove cruft files from incoming.
- classmethod requeue_changes(queue)¶
Re-queue all existing changes in incoming.
We must feed the the user uploads first, so the daemon does not get any yet-unknown build results (hence the sorting).
- class mini_buildd.ftpd.FtpDHandlerMixin(*args, **kwargs)¶
Bases:
object
- mini_buildd_queue = None¶
- on_file_received(file)¶
Make any incoming file read-only as soon as it arrives; avoids overriding uploads of the same file.
- on_incomplete_file_received(file)¶
- on_disconnect()¶
- class mini_buildd.ftpd.FtpDHandler(*args, **kwargs)¶
Bases:
mini_buildd.ftpd.FtpDHandlerMixin
,pyftpdlib.handlers.FTPHandler
- class mini_buildd.ftpd.FtpsDHandler(*args, **kwargs)¶
Bases:
mini_buildd.ftpd.FtpDHandlerMixin
,pyftpdlib.handlers.TLS_FTPHandler
- class mini_buildd.ftpd.FtpD(endpoint, queue)¶
Bases:
mini_buildd.threads.Thread
- shutdown()¶
- run()¶
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.