Lines 33-41
Link Here
|
33 |
|
33 |
|
34 |
|
34 |
|
35 |
def do_list(args): |
35 |
def do_list(args): |
|
|
36 |
repos=[] |
36 |
for r in sorted(args.repositories_xml.getroot().findall('repo'), |
37 |
for r in sorted(args.repositories_xml.getroot().findall('repo'), |
37 |
key=lambda x: locale.strxfrm(x.findtext('name'))): |
38 |
key=lambda x: locale.strxfrm(x.findtext('name'))): |
38 |
name = r.findtext('name') |
39 |
name = r.findtext('name') |
|
|
40 |
repos.append(name) |
39 |
uris = [transform_source(s, name) for s in r.findall('source')] |
41 |
uris = [transform_source(s, name) for s in r.findall('source')] |
40 |
if name in args.repos_conf: |
42 |
if name in args.repos_conf: |
41 |
sect = args.repos_conf[name] |
43 |
sect = args.repos_conf[name] |
Lines 47-53
Link Here
|
47 |
else: |
49 |
else: |
48 |
status = 'disabled' |
50 |
status = 'disabled' |
49 |
print('{} {}'.format(name, status)) |
51 |
print('{} {}'.format(name, status)) |
50 |
|
52 |
for r in args.repos_conf: |
|
|
53 |
if r != 'DEFAULT' and r not in repos: |
54 |
status = 'local' |
55 |
print('{} {}'.format(r, status)) |
51 |
|
56 |
|
52 |
def do_metadata(args): |
57 |
def do_metadata(args): |
53 |
all_repos = set(x.findtext('name') |
58 |
all_repos = set(x.findtext('name') |