ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007851ClearOSapp-software-updates - Software Updatespublic2016-03-29 09:422018-04-19 08:43
Reporterpbaldwin 
Assigned To 
PriorityhighSeverityminorReproducibilityhave not tried
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version7.2.0 
Target Version7.5.0 UpdatesFixed in Version 
Summary0007851: Handle column width voodoo in yum output
DescriptionThe 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

  
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2016-03-29 09:42 pbaldwin New Issue
2016-03-29 09:43 pbaldwin Status new => confirmed
2016-03-29 09:43 pbaldwin Summary Handle column with voodoo in yum output => Handle column width voodoo in yum output
2016-07-07 13:06 dloper Target Version 7.2.0 Updates => 7.3.0 Beta 1
2016-11-16 09:12 pbaldwin Target Version 7.3.0 Beta 1 => 7.3.0 Beta 1
2016-11-16 09:19 pbaldwin Target Version 7.3.0 Beta 1 =>
2018-03-08 19:16 pbaldwin Priority normal => high
2018-03-08 19:16 pbaldwin Target Version => 7.4.0 Updates
2018-04-11 10:28 pbaldwin Target Version 7.4.0 Updates => 7.5.0
2018-04-19 08:43 pbaldwin Target Version 7.5.0 => 7.5.0 Updates