fix postupdate

This commit is contained in:
j 2013-10-22 20:00:51 +00:00
parent 3373dc1180
commit 89962a5dd4

View file

@ -146,7 +146,7 @@ if __name__ == "__main__":
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'
elif current != new: if current != new:
if pandora_old_revno != pandora_new_revno: if pandora_old_revno != pandora_new_revno:
os.chdir(base) os.chdir(base)
run('./update.py', 'postupdate', pandora_old_revno, pandora_new_revno) run('./update.py', 'postupdate', pandora_old_revno, pandora_new_revno)