From 2e2a23ba66a6bc95382413a41592255efe98e93e Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 13 Jun 2015 00:18:53 +0300 Subject: [PATCH] Fix ignore sbo repo if not activate --- slpkg/main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index ebafcac8..38b7eadc 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -205,7 +205,8 @@ class ArgParse(object): "slack", resolve).start(if_upgrade=True) else: Patches(skip).start() - elif self.args[1] == "sbo": + elif (self.args[1] == "sbo" and + self.args[1] in self.meta.repositories): SBoInstall(sbo_upgrade(skip), resolve).start(if_upgrade=True) else: usage(self.args[1]) @@ -226,9 +227,9 @@ class ArgParse(object): self.args[1] not in ["sbo"]): BinaryInstall(packages, self.args[1], resolve).start( if_upgrade=False) - elif self.args[1] == "sbo": - SBoInstall(packages, resolve).start( - if_upgrade=False) + elif (self.args[1] == "sbo" and + self.args[1] in self.meta.repositories): + SBoInstall(packages, resolve).start(if_upgrade=False) else: usage(self.args[1]) else: