From 8f1a0c3047240a202f72f4e079dfc166788de5fa Mon Sep 17 00:00:00 2001 From: j Date: Sat, 20 Feb 2016 18:06:05 +0530 Subject: [PATCH] cleanup files that might be left over --- update.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update.py b/update.py index 55662d31e..74c4cc577 100755 --- a/update.py +++ b/update.py @@ -168,6 +168,14 @@ if __name__ == "__main__": if old <= 5389: run('./bin/pip', 'install', '-r', 'requirements.txt') run('./pandora/manage.py', 'migrate', '--fake-initial', '--noinput') + if os.path.exists('contrib'): + shutil.rmtree('contrib') + for path in ( + 'lib/python2.7/site-packages/Django.egg-link', + 'lib/python2.7/site-packages/django-extensions.egg-link' + ): + if os.path.exists(path): + os.unlink(path) service = 'pandora' print('Please install new init script for "%s" service:' % service) if os.path.exists('/etc/init'):