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
1 changed files with 2 additions and 2 deletions

View File

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