summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-11-29 21:15:01 (GMT)
committerLuke Macken <lmacken@redhat.com>2011-11-29 21:15:01 (GMT)
commitad5224236a2203153b187d01970df307e7487edc (patch)
tree06040ad07d300f5ebbbcbc435290fcbdf094106f
parent5ede4d91376e7e3760e7bddac3ea5a6e0ce203d0 (diff)
downloadfedoracommunity-ad5224236a2203153b187d01970df307e7487edc.zip
fedoracommunity-ad5224236a2203153b187d01970df307e7487edc.tar.gz
fedoracommunity-ad5224236a2203153b187d01970df307e7487edc.tar.xz
Have fcomm-ctl download our xapian db snapshot
-rw-r--r--fedoracommunity/ctl/ctl.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/fedoracommunity/ctl/ctl.py b/fedoracommunity/ctl/ctl.py
index 3d20fbd..e2ec19e 100644
--- a/fedoracommunity/ctl/ctl.py
+++ b/fedoracommunity/ctl/ctl.py
@@ -100,7 +100,15 @@ def bootstrap():
@_with_moksha_first
def rebuild():
""" Completely destroy and rebuild the virtualenv. """
- return install_hacks() and link_external_libs() and develop()
+ return install_hacks() and link_external_libs() and develop() and download_db_snapshot()
+
+
+@_reporter
+def download_db_snapshot():
+ """ Download a snapshot of our xapian database """
+ os.system('wget -N http://johnp.fedorapeople.org/downloads/xapian/xapian.tar.xz')
+ os.system('tar xvf xapian.tar.xz')
+ return True
@_reporter