From 6e4fecc2dd539590331dda60daa625874592df7c Mon Sep 17 00:00:00 2001 From: mao xiaojuan Date: Tue, 28 Nov 2017 16:58:58 +0800 Subject: [PATCH] Fix the bug that use local mic-bootstrap to run mic. Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87 --- mic/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mic/bootstrap.py b/mic/bootstrap.py index 2801678..b51b79a 100644 --- a/mic/bootstrap.py +++ b/mic/bootstrap.py @@ -102,7 +102,7 @@ class MiniBackend(object): elif len(pkglist) == 1: return ''.join(pkglist) elif os.path.splitext(cropts['local_pkgs_path'])[-1] == '.rpm': - if cropts['local_pkgs_path'].index(pkg) > -1: + if cropts['local_pkgs_path'].find(pkg) >= 0: return cropts['local_pkgs_path'] return None def runInstall(self): -- 2.34.1