1 |
commit: 446c10bf9e83a583a1b8efe59253fb3f3c4f54ca |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 28 22:19:59 2011 +0000 |
4 |
Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 28 22:19:59 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=446c10bf |
7 |
|
8 |
action_info: use _ENABLE_SET_CONFIG for sets |
9 |
|
10 |
--- |
11 |
pym/_emerge/actions.py | 14 ++++++++------ |
12 |
1 files changed, 8 insertions(+), 6 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py |
15 |
index c88ef92..b763e08 100644 |
16 |
--- a/pym/_emerge/actions.py |
17 |
+++ b/pym/_emerge/actions.py |
18 |
@@ -29,7 +29,7 @@ from portage import digraph |
19 |
from portage import _unicode_decode |
20 |
from portage.cache.cache_errors import CacheError |
21 |
from portage.const import GLOBAL_CONFIG_PATH, NEWS_LIB_PATH |
22 |
-from portage.const import _ENABLE_DYN_LINK_MAP |
23 |
+from portage.const import _ENABLE_DYN_LINK_MAP, _ENABLE_SET_CONFIG |
24 |
from portage.dbapi.dep_expand import dep_expand |
25 |
from portage.dep import Atom, extended_cp_match |
26 |
from portage.exception import InvalidAtom |
27 |
@@ -1389,11 +1389,13 @@ def action_info(settings, trees, myopts, myfiles): |
28 |
writemsg_stdout("Repositories: %s\n" % \ |
29 |
" ".join(repo.name for repo in repos)) |
30 |
|
31 |
- world_set = root_config.sets['selected'] |
32 |
- sets_line = "Installed sets: " |
33 |
- sets_line += ", ".join(s for s in sorted(world_set) if s.startswith(SETPREFIX)) |
34 |
- sets_line += "\n" |
35 |
- writemsg_stdout(sets_line) |
36 |
+ if _ENABLE_SET_CONFIG: |
37 |
+ sets_line = "Installed sets: " |
38 |
+ sets_line += ", ".join(s for s in \ |
39 |
+ sorted(root_config.sets['selected'].getNonAtoms()) \ |
40 |
+ if s.startswith(SETPREFIX)) |
41 |
+ sets_line += "\n" |
42 |
+ writemsg_stdout(sets_line) |
43 |
|
44 |
if "--verbose" in myopts: |
45 |
myvars = list(settings) |