Considering that this will require a lot of schlepping around of files and environment variables, I feel like a shell script is best suited to this purpose.
It'd start by reading the files like this:
export OS_AUTH_URL=$(cat ~/os.auth.url)
And then iterate over commandline args and upload to swift like this:
swift upload $SILONAME $filename
($SILONAME is already defined by the train so you'd just get that for free)
And then you'd want to call that script after the diffs get generated, from here:
Considering that this will require a lot of schlepping around of files and environment variables, I feel like a shell script is best suited to this purpose.
It'd start by reading the files like this:
export OS_AUTH_URL=$(cat ~/os.auth.url)
And then iterate over commandline args and upload to swift like this:
swift upload $SILONAME $filename
($SILONAME is already defined by the train so you'd just get that for free)
And then you'd want to call that script after the diffs get generated, from here:
http:// bazaar. launchpad. net/+branch/ cupstream2distr o/view/ head:/cupstream 2distro/ packagemanager. py#L221
(bonus points if you can remove that pylint disable ;-)