From d21bddc159ca7ec9c3f48bfb426a88e3d04edf7d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 1 Apr 2014 14:56:11 -0400 Subject: [PATCH] improved warning when trying to init a dir with stuff in it --- fdroidserver/init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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...