mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for future changes
This commit is contained in:
parent
040922b1c2
commit
4a66c50735
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,7 @@ class ViewMessage(Configs):
|
|||
|
||||
if self.is_binary:
|
||||
version: str = self.data[package][0]
|
||||
# size: str = self.utils.convert_file_sizes(int(self.data[package][4])) <- It's going to replace with this
|
||||
size: str = self.utils.convert_file_sizes(
|
||||
int(''.join(re.findall(r'\d+', self.data[package][4])))
|
||||
)
|
||||
|
@ -216,7 +217,9 @@ class ViewMessage(Configs):
|
|||
installed: str = self.utils.is_package_installed(pkg)
|
||||
|
||||
if self.is_binary:
|
||||
# size_comp += int(self.data[pkg][4]) <- It's going to replace with this
|
||||
size_comp += int(''.join(re.findall(r'\d+', self.data[pkg][4])))
|
||||
# size_uncomp += int(self.data[pkg][5]) <- It's going to replace with this
|
||||
size_uncomp += int(''.join(re.findall(r'\d+', self.data[pkg][5])))
|
||||
|
||||
if installed and option == 'remove':
|
||||
|
|
Loading…
Reference in a new issue