def _list_repos():
    """Lists all the installed repos as well as their last start and finish
    times from the cron's perspective.
    """
    if not args["list"]:
        return
    
    #Just loop over the list of repos we have in a server instance. See if
    #they also exist in the db's status; if they do, include the start/end
    #times we have saved.
    from pyci.server import Server
    server = Server(testmode=args["nolive"])
    output = ["Repository           |      Started     |      Finished    | XML File Path",
              "--------------------------------------------------------------------------"]

    dbs = {} if "status" not in db else db["status"]
    fullfmt = "{0:<20} | {1:^16} | {2:^16} | {3}"
    for reponame, repo in server.repositories.items():
        if reponame in dbs:
            start = _fmt_time(dbs[reponame]["start"])
            end = _fmt_time(dbs[reponame]["end"])
        else:
            start = "Never"
            end = "Never"
        output.append(fullfmt.format(reponame, start, end, repo.filepath))

    info('\n'.join(output))
def _list_repos ( ) : if not args [ "list" ] : return from pyci . server import Server server = Server ( testmode = args [ "nolive" ] ) output = [ "Repository           |      Started     |      Finished    | XML File Path" , "--------------------------------------------------------------------------" ] dbs = { } if "status" not in db else db [ "status" ] fullfmt = "{0:<20} | {1:^16} | {2:^16} | {3}" for reponame , repo in server . repositories . items ( ) : if reponame in dbs : start = _fmt_time ( dbs [ reponame ] [ "start" ] ) end = _fmt_time ( dbs [ reponame ] [ "end" ] ) else : start = "Never" end = "Never" output . append ( fullfmt . format ( reponame , start , end , repo . filepath ) ) info ( '\n' . join ( output ) )
Lists all the installed repos as well as their last start and finish
    times from the cron's perspective.