From cc7f9e64a561439996bbf651a95d19a5f08b981f Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 26 Dec 2022 12:45:32 +0200 Subject: [PATCH] Updated code style --- slpkg/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slpkg/main.py b/slpkg/main.py index 130e5de8..5749053f 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -83,6 +83,7 @@ class Argparse: if method == 'remove': + # Grab all the installed packages installed = os.listdir(self.configs.log_packages) for package in installed: @@ -98,7 +99,9 @@ class Argparse: for pkg in packages: if pkg in package: + repo_ver = SBoQueries(package).version() + if method == 'upgrade': pkg = self.utils.is_installed(package) inst_ver = self.utils.split_installed_pkg(pkg)[1]