Don't download the DB if the right version is already there

This commit is contained in:
Rob Speer 2013-10-31 14:12:04 -04:00
parent c1564908f2
commit e931062b5a

View File

@ -84,13 +84,15 @@ class UploadDataCommand(SimpleCommand):
class CustomInstallCommand(install): class CustomInstallCommand(install):
def run(self): def run(self):
install.run(self) install.run(self)
self.run_command('download_db') if not os.path.exists(config.DB_FILENAME):
self.run_command('download_db')
class CustomDevelopCommand(develop): class CustomDevelopCommand(develop):
def run(self): def run(self):
develop.run(self) develop.run(self)
self.run_command('download_db') if not os.path.exists(config.DB_FILENAME):
self.run_command('download_db')
requirements = ['ftfy >= 3'] requirements = ['ftfy >= 3']