From dbaca5cb2ad7e8e22fa00dead6cbbd063993ea54 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Oct 2013 20:03:42 +0000 Subject: [PATCH] move postupdate to better place --- update.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update.py b/update.py index 15d48cc46..e610f344f 100755 --- a/update.py +++ b/update.py @@ -141,13 +141,13 @@ if __name__ == "__main__": if current != new: run('./manage.py', 'update_static') 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: 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() if diff != '-- No differences': print 'Database has changed, please make a backup and run ./update.py db' - if current != new: - if pandora_old_revno != pandora_new_revno: - os.chdir(base) - run('./update.py', 'postupdate', pandora_old_revno, pandora_new_revno) + elif current != new: reload_notice(base)