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
    for p in M.Project.query.find(q_project):
33
    projects = M.Project.query.find(q_project).all()
34
    for p in projects:
34
        c.project = p
35
        c.project = p
35
        if projects:
36
        if projects:
36
            mount_points = projects[p.shortname]
37
            mount_points = projects[p.shortname]
37
        else:
38
        else:
38
            mount_points = [ ac.options.mount_point
39
            mount_points = [ ac.options.mount_point