1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

improved warning when trying to init a dir with stuff in it

This commit is contained in:
Hans-Christoph Steiner 2014-04-01 14:56:11 -04:00
parent 802d5e298c
commit d21bddc159

View 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...