move postupdate to better place

This commit is contained in:
j 2013-10-22 20:03:42 +00:00
parent 89962a5dd4
commit dbaca5cb2a

View file

@ -141,13 +141,13 @@ if __name__ == "__main__":
if current != new: if current != new:
run('./manage.py', 'update_static') run('./manage.py', 'update_static')
run('./manage.py', 'compile_pyc') run('./manage.py', 'compile_pyc')
if pandora_old_revno != pandora_new_revno:
os.chdir(base)
run('./update.py', 'postupdate', pandora_old_revno, pandora_new_revno)
if not development: if not development:
print 'pan.do/ra is at the latest stable release, you can run "./update dev" to update to the development version' print 'pan.do/ra is at the latest stable release, you can run "./update dev" to update to the development version'
diff = get('./manage.py', 'sqldiff', '-a').strip() diff = get('./manage.py', 'sqldiff', '-a').strip()
if diff != '-- No differences': if diff != '-- No differences':
print 'Database has changed, please make a backup and run ./update.py db' print 'Database has changed, please make a backup and run ./update.py db'
if current != new: elif current != new:
if pandora_old_revno != pandora_new_revno:
os.chdir(base)
run('./update.py', 'postupdate', pandora_old_revno, pandora_new_revno)
reload_notice(base) reload_notice(base)