mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
improved warning when trying to init a dir with stuff in it
This commit is contained in:
parent
802d5e298c
commit
d21bddc159
1 changed files with 2 additions and 1 deletions
|
|
@ -112,7 +112,8 @@ def main():
|
||||||
shutil.copyfile(os.path.join(examplesdir, 'config.py'), 'config.py')
|
shutil.copyfile(os.path.join(examplesdir, 'config.py'), 'config.py')
|
||||||
os.chmod('config.py', 0o0600)
|
os.chmod('config.py', 0o0600)
|
||||||
else:
|
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()
|
sys.exit()
|
||||||
|
|
||||||
# now that we have a local config.py, read configuration...
|
# now that we have a local config.py, read configuration...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue