Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 666368
Collapse All | Expand All

(-)a/eselect-repo-helper (-1 / +6 lines)
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')
(-)a/repository.eselect.in (+2 lines)
Lines 423-428 Link Here
423
					name+=" $(highlight_warning '#')"
423
					name+=" $(highlight_warning '#')"
424
				fi
424
				fi
425
				;;
425
				;;
426
			local)
427
				name+=" $(highlight_warning '#')";;
426
			*)
428
			*)
427
				if [[ -n ${only_installed} ]]; then
429
				if [[ -n ${only_installed} ]]; then
428
					(( i++ ))
430
					(( i++ ))

Return to bug 666368