From a660c7958b3b2de4798dbdccc1ebf721d73b7fbf Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 3 Apr 2023 21:23:03 +0300 Subject: [PATCH] Fixed option --- ChangeLog.txt | 4 ++++ slpkg/main.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 4a091bec..7ec894c0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +4.7.3 - 03/04/2023 +Fixed: +- Option -B for -u, update command + 4.7.2 - 02/04/2023 Updated: - Packaging parse versions diff --git a/slpkg/main.py b/slpkg/main.py index 576c79c1..28201dd5 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -368,7 +368,7 @@ class Argparse(Configs): self.binary_repo: str = arg.split('=')[1] self.args[self.args.index(arg)] = self.flag_bin_repository - if arg.startswith(self.flag_short_bin_repository) and len(self.args) > 3: + if arg.startswith(self.flag_short_bin_repository) and len(self.args) > 2: self.binary_repo: str = self.args[self.args.index(arg) + 1] self.args.remove(self.binary_repo)