From 6d1d038329acc59e9a0bdf015e7d97b664f2d3d9 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 2653c35..f911414 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.7.4