From: Hans-Christoph Steiner Date: Tue, 1 Apr 2014 18:56:11 +0000 (-0400) Subject: improved warning when trying to init a dir with stuff in it X-Git-Tag: 0.2~154^2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d21bddc159ca7ec9c3f48bfb426a88e3d04edf7d;p=fdroidserver.git improved warning when trying to init a dir with stuff in it --- diff --git a/fdroidserver/init.py b/fdroidserver/init.py index 666cfaef..d6804c35 100644 --- a/fdroidserver/init.py +++ b/fdroidserver/init.py @@ -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...