only print reload message if something changed

This commit is contained in:
j 2013-03-02 03:08:59 +00:00
parent 97d9f03c8b
commit 4711d2be9c

View file

@ -78,5 +78,5 @@ 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 database' print 'Database has changed, please make a backup and run ./update.py database'
else: elif current != new:
reload_notice(base) reload_notice(base)