Switch to unified view

a/scripts/refresh-all-repos.py b/scripts/refresh-all-repos.py
...
...
28
        q_project = {}
28
        q_project = {}
29
    log.info('Refreshing repositories')
29
    log.info('Refreshing repositories')
30
    if options.clean:
30
    if options.clean:
31
        log.info('Removing all repository objects')
31
        log.info('Removing all repository objects')
32
        M.repository.RepoObject.query.remove()
32
        M.repository.RepoObject.query.remove()
33
    projects = M.Project.query.find(q_project).all()
33
    all_projects = M.Project.query.find(q_project).all()
34
    for p in projects:
34
    for p in all_projects:
35
        c.project = p
35
        c.project = p
36
        if projects:
36
        if projects:
37
            mount_points = projects[p.shortname]
37
            mount_points = projects[p.shortname]
38
        else:
38
        else:
39
            mount_points = [ ac.options.mount_point
39
            mount_points = [ ac.options.mount_point