On Sat, Apr 20, 2013 at 2:27 AM, Pedro Veloso <pedro.n.veloso@gmail.com> wrote:
The notifier for package maintainers should be easy to implement, I'm assuming it is basically keeping track of the "OutOfDate" field.
The AUR mail notifications send info about new comments, marking as outdated, deletes (TU), merges (TU) and orphans (TU/user). Doing the first one requires ugly web scraping. The others are easy to implement with a msearch call, described below. Just throw a HTTP request to https://aur.archlinux.org/rpc.php?type=msearch&arg=USERNAME, decode the JSON, put the results in a database (or a csv file) storing only the names and out-of-date status. Then, inform the human about existing out-of-date packages. On each subsequent call to the RPC, compare the database results with data you just downloaded from there. Package wasn’t out of date and now it is? Tell the human. Package isn’t there anymore? Tell the human that it was deleted, merged or orphaned. And then save the newly downloaded data, overwriting previous database results. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail | always bottom-post http://asciiribbon.org | http://caliburn.nl/topposting.html