From 1da17615412ddc0760383846a8c24ae67173e6e4 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 25 Dec 2022 19:16:21 +0200 Subject: [PATCH] Updated code --- slpkg/slackbuild.py | 4 ++-- slpkg/upgrade.py | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index a12e482e..387678ad 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -94,8 +94,8 @@ class Slackbuilds: if not code: return dependencies - if tags: - os.system('clear') + os.system('clear') + return tags def creating_main_for_build(self): diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index f15cc188..3ffe0bfa 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -70,9 +70,8 @@ class Upgrade: return packages os.system('clear') - if code == 'ok': - if not tags: - raise SystemExit() - return tags - raise SystemExit() + if not tags: + raise SystemExit() + + return tags