From a7c2740187cdf53d581732ab9c06687522a11aa0 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 10 Oct 2016 18:10:10 +0300 Subject: [PATCH] BugFix: IndexError: list index out of range --- slpkg/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slpkg/main.py b/slpkg/main.py index ccfe985d..deb64231 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -264,7 +264,7 @@ class ArgParse(object): if arg not in flag: usage("") raise SystemExit() - if (len(self.args) >= 1 and len(self.args) <= 5 and + if (len(self.args) > 1 and len(self.args) <= 5 and self.args[0] in options and self.args[1] in self.meta.repositories): PackageManager(binary=None).package_list(self.args[1],