From: Brian Dolbec Date: Sat, 2 Jun 2012 18:52:10 +0000 (-0700) Subject: remove the auto linewrapping from the stablereq output line so it does not mess up... X-Git-Tag: gentoolkit-0.3.0.7~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=228b774543706722435259d8e8c61ea785476579;p=gentoolkit.git remove the auto linewrapping from the stablereq output line so it does not mess up the copy/paste of the cc's --- 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)