merge more update.py cleanups from bzr

This commit is contained in:
j 2015-11-14 16:16:58 +01:00
parent 1dfd327f6f
commit e729aa959d

View file

@ -106,8 +106,8 @@ if __name__ == "__main__":
run('./manage.py', 'update_static') run('./manage.py', 'update_static')
elif len(sys.argv) == 4 and sys.argv[1] == 'postupdate': elif len(sys.argv) == 4 and sys.argv[1] == 'postupdate':
os.chdir(base) os.chdir(base)
old = sys.argv[2] old = sys.argv[2].strip()
new = sys.argv[3] new = sys.argv[3].strip()
if old.isdigit(): if old.isdigit():
old = int(old) old = int(old)
if new.isdigit(): if new.isdigit():