diff options
| author | Brian Dolbec <dolsen@gentoo.org> | 2012-06-02 11:52:10 -0700 |
|---|---|---|
| committer | Brian Dolbec <dolsen@gentoo.org> | 2012-06-02 11:52:10 -0700 |
| commit | 228b774543706722435259d8e8c61ea785476579 (patch) | |
| tree | 854fb1eecff909f32f989b1a99632c931dcfbb35 | |
| parent | 2a0d53373fb0b7e1bae370725472822d94096f61 (diff) | |
| download | gentoolkit-228b774543706722435259d8e8c61ea785476579.tar.gz | |
remove the auto linewrapping from the stablereq output line so it does not mess up the copy/paste of the cc's
| -rw-r--r-- | pym/gentoolkit/equery/meta.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pym/gentoolkit/equery/meta.py b/pym/gentoolkit/equery/meta.py index 2e331c5..9beb3eb 100644 --- a/pym/gentoolkit/equery/meta.py +++ b/pym/gentoolkit/equery/meta.py @@ -280,6 +280,12 @@ def format_keywords_line(pkg, fmtd_keywords, slot, verstr_len): return result +def format_stablereq_line(pkg, fmtd_ccs, slot): + """Format the entire stablereq line for display (no indented linewrapping) + """ + return "%s:%s: %s" % (pkg.fullversion, pp.slot(slot), fmtd_ccs) + + def format_homepage(homepage): """format the homepage(s) entries for dispaly""" result = [] @@ -372,8 +378,8 @@ def call_format_functions(best_match, matches): slot = match.environment('SLOT') verstr_len = len(match.fullversion) + len(slot) fmtd_ccs = ','.join(sorted(stablereq_map[match])) - stablereq_line = format_keywords_line( - match, fmtd_ccs, slot, verstr_len + stablereq_line = format_stablereq_line( + match, fmtd_ccs, slot ) #print("STABLEREQ:", ) pp.uprint(stablereq_line) |
