mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
server: remove unused --sync-from-local-copy-dir
This option was not hooked up at all, and does not make sense as a command line argument. It should just be a config.py item. In that case, the presence of config.py marks the current dir as a repo, so there is no longer a need to test for a dir called repo/ as a safety. This makes the setup easier, since sync_from_localcopy() now creates repo/ for the user.
This commit is contained in:
parent
0c19d4566d
commit
f75b547795
2 changed files with 3 additions and 4 deletions
|
|
@ -308,8 +308,6 @@ def main():
|
|||
help="Specify an identity file to provide to SSH for rsyncing")
|
||||
parser.add_argument("--local-copy-dir", default=None,
|
||||
help="Specify a local folder to sync the repo to")
|
||||
parser.add_argument("--sync-from-local-copy-dir", action="store_true", default=False,
|
||||
help="Before uploading to servers, sync from local copy dir")
|
||||
parser.add_argument("--no-checksum", action="store_true", default=False,
|
||||
help="Don't use rsync checksums")
|
||||
options = parser.parse_args()
|
||||
|
|
@ -417,7 +415,7 @@ def main():
|
|||
elif options.command == 'update':
|
||||
for repo_section in repo_sections:
|
||||
if local_copy_dir is not None:
|
||||
if config['sync_from_local_copy_dir'] and os.path.exists(repo_section):
|
||||
if config['sync_from_local_copy_dir']:
|
||||
sync_from_localcopy(repo_section, local_copy_dir)
|
||||
else:
|
||||
update_localcopy(repo_section, local_copy_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue