From 46793a969480c7feddea77e69add27d068178655 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 3 Jun 2020 20:47:04 +0300 Subject: [PATCH] Fixed --upgrade flag Signed-off-by: Dimitris Zlatanidis --- slpkg/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index c250905e..d86ea0a2 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -341,13 +341,13 @@ class ArgParse(BlackList): """ flag, skip = [], "" if flags[0] in self.args: - for arg in self.args[3:]: + for arg in self.args: if arg.startswith(flags[1]): skip = Regex(arg.split("=")[1]).get() self.args.remove(arg) if arg in flags: flag.append(arg) - if arg in self.args: + if arg not in self.args: self.args.remove(arg) if "--checklist" in flag: self.if_checklist()