From 228b774543706722435259d8e8c61ea785476579 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sat, 2 Jun 2012 11:52:10 -0700 Subject: [PATCH] remove the auto linewrapping from the stablereq output line so it does not mess up the copy/paste of the cc's --- pym/gentoolkit/equery/meta.py | 10 ++++++++-- 1 file 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) -- 2.26.2