Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit c9809c3bf7178c038fb240a4af41adb691351630 Author: Till Maas opensource@till.name Date: Tue Jul 6 22:24:56 2010 +0200
make init: download pickle data only when needed
Using wget -N the pickle data is only downloaded when the remote file is newer than the local one. Also the pickle data tarball is now removed in the clean target.
diff --git a/Makefile b/Makefile index 202b5f2..ad4923a 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ todo: clean: find . -name '*.pyc' | xargs rm -f rm -rf virtenv + rm bodhi-pickledb.tar.bz2
dist: python setup.py sdist --formats=bztar @@ -47,10 +48,11 @@ pyflakes: find . -name '*.py' | xargs pyflakes
init: - curl -O https://fedorahosted.org/releases/b/o/bodhi/bodhi-pickledb.tar.bz2 + wget -N https://fedorahosted.org/releases/b/o/bodhi/bodhi-pickledb.tar.bz2 tar -jxvf bodhi-pickledb.tar.bz2 - rm bodhi-pickledb.tar.bz2 - tg-admin --config=bodhi.cfg sql create && bodhi/tools/init.py && bodhi/tools/dev_init.py && bodhi/tools/pickledb.py load bodhi-pickledb* + tg-admin --config=bodhi.cfg sql create && bodhi/tools/init.py && bodhi/tools/dev_init.py && bodhi/tools/pickledb.py load bodhi-pickledb-* + # remove the untared pickledb + rm bodhi-pickledb-*
run: python start-bodhi