Give error when datadir in appdir

This commit is contained in:
Ruud committed 2012-06-30 19:03:53 +02:00
1 parent 89d3b9b72a
commit 0fc5c42aba
2 files changed
+14

No files matched your search

+7
View File
@@ -305,6 +305,13 @@ class SourceUpdater(BaseUpdater):
except Exception, e:
log.error('Failed overwriting file: %s', e)
if Env.get('app_dir') not in Env.get('data_dir'):
for still_exists in existing_files:
try:
os.remove(still_exists)
except:
log.error('Failed removing non-used file: %s', traceback.format_exc())
def removeDir(self, path):
try: