ClearFoundation Tracker - ClearOS
View Issue Details
0007851ClearOSapp-software-updates - Software Updatespublic2016-03-29 09:422019-02-23 15:15
highminorhave not tried
7.6.0 Updates 
0007851: Handle column width voodoo in yum output
The column widths used by yum use a lot of voodoo. This makes it hard to parse its output in a reasonable way. It would be nice if line wrapping could be disabled -- is that possible? Regardless, the dynamic line wrapping is causing grief for the install wizard and potentially other API calls.

Here's the source code comments on the voodoo.

    def calcColumns(self, data, columns=None, remainder_column=0,
                    total_width=None, indent=''):
        """Dynamically calculate the widths of the columns that the
        fields in data should be placed into for output.
        :param data: a list of dictionaries that represent the data to
           be output. Each dictionary in the list corresponds to a
           column of output. The keys of the dictionary are the
           lengths of the items to be output, and the value associated
           with a key is the number of items of that length.
        :param columns: a list containing the minimum amount of space
           that must be allocated for each row. This can be used to
           ensure that there is space available in a column if, for
           example, the actual lengths of the items being output
           cannot be given in *data*
        :param remainder_column: number of the column to receive a few
           extra spaces that may remain after other allocation has
           taken place
        :param total_width: the total width of the output.
           self.term.columns is used by default
        :param indent: string that will be prefixed to a line of
           output to create e.g. an indent
        :return: a list of the widths of the columns that the fields
           in data should be placed into for output

No tags attached.
Issue History
2016-03-29 09:42user2New Issue
2016-03-29 09:43user2Statusnew => confirmed
2016-03-29 09:43user2SummaryHandle column with voodoo in yum output => Handle column width voodoo in yum output
2016-07-07 13:06dloperTarget Version7.2.0 Updates => 7.3.0 Beta 1
2016-11-16 09:12user2Target Version7.3.0 Beta 1 => 7.3.0 Beta 1
2016-11-16 09:19user2Target Version7.3.0 Beta 1 =>
2018-03-08 19:16user2Prioritynormal => high
2018-03-08 19:16user2Target Version => 7.4.0 Updates
2018-04-11 10:28user2Target Version7.4.0 Updates => 7.5.0
2018-04-19 08:43user2Target Version7.5.0 => 7.5.0 Updates
2018-10-30 19:45user2Target Version7.5.0 Updates => 7.6.0
2018-12-14 11:36dloperTarget Version7.6.0 => 7.6.0 Updates
2019-02-23 15:15dloperNote Added: 0009421
2019-02-23 15:15dloperStatusconfirmed => closed
2019-02-23 15:15dloperAssigned To => dloper
2019-02-23 15:15dloperResolutionopen => suspended

2019-02-23 15:15   
Migrated to: [^]