remove the auto linewrapping from the stablereq output line so it does not mess up...
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 2 Jun 2012 18:52:10 +0000 (11:52 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Sat, 2 Jun 2012 18:52:10 +0000 (11:52 -0700)
pym/gentoolkit/equery/meta.py

index 2e331c5c32a014965f3e4699cea7bdd4ba05a474..9beb3eb4c6ecd7e150cc82c59a67209b05eedada 100644 (file)
@@ -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)