Updated for future changes

This commit is contained in:
Dimitris Zlatanidis 2023-05-06 21:23:22 +03:00
parent 040922b1c2
commit 4a66c50735

View file

@ -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':