1 |
commit: 228b774543706722435259d8e8c61ea785476579 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 2 18:52:10 2012 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jun 2 18:52:10 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=228b7745 |
7 |
|
8 |
remove the auto linewrapping from the stablereq output line so it does not mess up the copy/paste of the cc's |
9 |
|
10 |
--- |
11 |
pym/gentoolkit/equery/meta.py | 10 ++++++++-- |
12 |
1 files changed, 8 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/pym/gentoolkit/equery/meta.py b/pym/gentoolkit/equery/meta.py |
15 |
index 2e331c5..9beb3eb 100644 |
16 |
--- a/pym/gentoolkit/equery/meta.py |
17 |
+++ b/pym/gentoolkit/equery/meta.py |
18 |
@@ -280,6 +280,12 @@ def format_keywords_line(pkg, fmtd_keywords, slot, verstr_len): |
19 |
return result |
20 |
|
21 |
|
22 |
+def format_stablereq_line(pkg, fmtd_ccs, slot): |
23 |
+ """Format the entire stablereq line for display (no indented linewrapping) |
24 |
+ """ |
25 |
+ return "%s:%s: %s" % (pkg.fullversion, pp.slot(slot), fmtd_ccs) |
26 |
+ |
27 |
+ |
28 |
def format_homepage(homepage): |
29 |
"""format the homepage(s) entries for dispaly""" |
30 |
result = [] |
31 |
@@ -372,8 +378,8 @@ def call_format_functions(best_match, matches): |
32 |
slot = match.environment('SLOT') |
33 |
verstr_len = len(match.fullversion) + len(slot) |
34 |
fmtd_ccs = ','.join(sorted(stablereq_map[match])) |
35 |
- stablereq_line = format_keywords_line( |
36 |
- match, fmtd_ccs, slot, verstr_len |
37 |
+ stablereq_line = format_stablereq_line( |
38 |
+ match, fmtd_ccs, slot |
39 |
) |
40 |
#print("STABLEREQ:", ) |
41 |
pp.uprint(stablereq_line) |