ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007851ClearOSapp-software-updates - Software Updatespublic2016-03-29 09:422019-02-23 15:15
Reporteruser2 
Assigned Todloper 
PriorityhighSeverityminorReproducibilityhave not tried
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version7.2.0 
Target Version7.6.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
(0009421)
dloper (administrator)
2019-02-23 15:15

Migrated to: https://gitlab.com/clearos/clearfoundation/app-software-updates/issues/1 [^]

- Issue History
Date Modified Username Field Change
2016-03-29 09:42 user2 New Issue
2016-03-29 09:43 user2 Status new => confirmed
2016-03-29 09:43 user2 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 user2 Target Version 7.3.0 Beta 1 => 7.3.0 Beta 1
2016-11-16 09:19 user2 Target Version 7.3.0 Beta 1 =>
2018-03-08 19:16 user2 Priority normal => high
2018-03-08 19:16 user2 Target Version => 7.4.0 Updates
2018-04-11 10:28 user2 Target Version 7.4.0 Updates => 7.5.0
2018-04-19 08:43 user2 Target Version 7.5.0 => 7.5.0 Updates
2018-10-30 19:45 user2 Target Version 7.5.0 Updates => 7.6.0
2018-12-14 11:36 dloper Target Version 7.6.0 => 7.6.0 Updates
2019-02-23 15:15 dloper Note Added: 0009421
2019-02-23 15:15 dloper Status confirmed => closed
2019-02-23 15:15 dloper Assigned To => dloper
2019-02-23 15:15 dloper Resolution open => suspended