Rewritten most of the mirror script around a new configuration file
written in Python code syntax to allow for much greater configuration
flexibility. Also introduced the concept of a persistent database to
store the list of known kernels (written an implementation that uses
cPickle), the concept of a "source" object that provides the current
list of kernels (written implementations for rsync and urllib2/HTML
sources). Exposed the actions configured with the trigger object to the
config file so anyone can configure whatever actions they want taken to
handle the new kernel versions. Provided sample config file.
When setting up the mirror script on a new installation you will
probably want (after creating a config file for it) to run it first in
"dry run" mode to initialize the database with the known kernels
reported by the source at that moment (otherwise it will think all those
kernels are new and will want to run whatever actions you configured on
all of them).
Signed-off-by: Mihai Rusu <dizzy@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3477 592f7852-d20e-0410-864c-8624ca9c26a4
11 files changed