chiark / gitweb /
improved warning when trying to init a dir with stuff in it
authorHans-Christoph Steiner <hans@eds.org>
Tue, 1 Apr 2014 18:56:11 +0000 (14:56 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 1 Apr 2014 21:51:54 +0000 (17:51 -0400)
fdroidserver/init.py

index 666cfaef592f8571ee14f34d20f1457005fb9cbd..d6804c354050e776196841f13a009f21578bd228 100644 (file)
@@ -112,7 +112,8 @@ def main():
         shutil.copyfile(os.path.join(examplesdir, 'config.py'), 'config.py')
         os.chmod('config.py', 0o0600)
     else:
-        logging.info('Looks like this is already an F-Droid repo, cowardly refusing to overwrite it...')
+        logging.warn('Looks like this is already an F-Droid repo, cowardly refusing to overwrite it...')
+        logging.info('Try running `fdroid init` in an empty directory.')
         sys.exit()
 
     # now that we have a local config.py, read configuration...