Changeset - 1dbe842f32c4
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 6 years ago 2020-07-25 18:44:59
mads@kiilerich.com
repos: when scanning for repos in file system, process and report them alphabetically
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/utils.py
Show inline comments
 
@@ -463,13 +463,13 @@ def repo2db_mapper(initial_repo_dict, re
 
    # creation defaults
 
    defs = Setting.get_default_repo_settings(strip_prefix=True)
 
    enable_statistics = defs.get('repo_enable_statistics')
 
    enable_downloads = defs.get('repo_enable_downloads')
 
    private = defs.get('repo_private')
 

	
 
    for name, repo in initial_repo_dict.items():
 
    for name, repo in sorted(initial_repo_dict.items()):
 
        group = map_groups(name)
 
        db_repo = repo_model.get_by_repo_name(name)
 
        # found repo that is on filesystem not in Kallithea database
 
        if not db_repo:
 
            log.info('repository %s not found, creating now', name)
 
            added.append(name)
0 comments (0 inline, 0 general)