~linaro-automation/linaro-android-mirror/trunk

« back to all changes in this revision

Viewing changes to linaro_android_mirror/service.py

  • Committer: Michael Hudson
  • Date: 2011-02-08 03:43:27 UTC
  • Revision ID: michael.hudson@linaro.org-20110208034327-m3jz9xj6pd5jiflh
give up on tdd for the moment and hack a mirrorer that actually updates the mirrors together

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from twisted.web.xmlrpc import XMLRPC
2
2
 
 
3
from linaro_android_mirror.mirrorer import mirror
 
4
 
3
5
class MirrorEndpoint(XMLRPC):
4
6
 
5
7
    def xmlrpc_mirror(self, text):
6
 
        return text.replace('android.git.kernel.org', 'android-build.linaro.org/android.git.kernel.org')
 
8
        return mirror(text)