mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
update code
This commit is contained in:
parent
0d73bef373
commit
4bdb0ee046
1 changed files with 6 additions and 5 deletions
|
@ -26,7 +26,10 @@ import sys
|
|||
|
||||
from repositories import Repo
|
||||
from messages import template
|
||||
from __metadata__ import repositories, color
|
||||
from __metadata__ import (
|
||||
repositories,
|
||||
color
|
||||
)
|
||||
|
||||
|
||||
class RepoList(object):
|
||||
|
@ -55,11 +58,9 @@ class RepoList(object):
|
|||
'Status'))
|
||||
template(78)
|
||||
for repo_id, repo_name in sorted(self.all_repos.iteritems()):
|
||||
status = 'disabled'
|
||||
COLOR = color['RED']
|
||||
status, COLOR = 'disabled', color['RED']
|
||||
if repo_id in repositories:
|
||||
status = 'enabled'
|
||||
COLOR = color['GREEN']
|
||||
status, COLOR = 'enabled', color['GREEN']
|
||||
print(' {0}{1}{2}{3}{4}{5:>15}{6}'.format(
|
||||
repo_id, ' ' * (17 - len(repo_id)),
|
||||
repo_name, ' ' * (45 - len(repo_name)),
|
||||
|
|
Loading…
Add table
Reference in a new issue