zebrapig-helpers: misc scripts related to exherbo linux development
Inotify watcher for IRC logs' path (or glob pattern) for zebrapig patchbot "patch queue" ("!pq") requests.
Upon spotting a new request with a pastebin-link in it, stores paste contents
into dst_path
, with sha1 of the link as a basename (technically,
"${link_sha1}.patch").
Purpose is to mirror transient and unreliable links to pastebin-like services to something more permanent. Currently that "more permanent" thing is a github-mirrored repo, exherbo-patches.
Requirements: Twisted Core, Twisted Web
Usage:
usage: paste_grabber.py [-h] [--debug] [--noise] path_mask dst_path
Watch IRC logs from a specified path and download all the zebrapig patchbot
requests to a given dst_path.
positional arguments:
path_mask Glob pattern of IRC logs to watch (can be a dir or dir-glob).
dst_path Dir to download all the patches to.
optional arguments:
-h, --help show this help message and exit
--debug Verbose operation mode.
--noise Even more verbose mode than --debug.