mini_buildd.ftpd module¶
-
class
mini_buildd.ftpd.Incoming¶ Bases:
objectTool 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).
-
classmethod
-
class
mini_buildd.ftpd.FtpDHandler(*args, **kwargs)¶ Bases:
pyftpdlib.handlers.FTPHandler-
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)¶ Called every time a file has not been entirely received (e.g. ABOR during transfer or client disconnected). “file” is the absolute name of that file.
-
on_disconnect()¶ Called when connection is closed.
-
-
mini_buildd.ftpd.run(bind, queue)¶
-
mini_buildd.ftpd.shutdown()¶