ClearFoundation Tracker - ClearOS | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0007851 | ClearOS | app-software-updates - Software Updates | public | 2016-03-29 09:42 | 2019-02-23 15:15 |
Reporter | user2 | ||||
Assigned To | dloper | ||||
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | suspended | ||
Platform | OS | OS Version | |||
Product Version | 7.2.0 | ||||
Target Version | 7.6.0 Updates | Fixed in Version | |||
Summary | 0007851: Handle column width voodoo in yum output | ||||
Description | 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 | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|