From 4a66c5073560ee8f2463d23acbb2976985b2c1c8 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 6 May 2023 21:23:22 +0300 Subject: [PATCH] Updated for future changes --- slpkg/views/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index a140a020..350c6e51 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -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':