summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormao xiaojuan <xiaojuan.mao@samsung.com>2017-11-28 16:58:58 +0800
committermao xiaojuan <xiaojuan.mao@samsung.com>2017-11-28 16:59:59 +0800
commit6d1d038329acc59e9a0bdf015e7d97b664f2d3d9 (patch)
tree27ba4ee6a4bc35a470de90321467bcf65f7f8bae
parenta844235d18bf17987b6e17dbf397622a4b26e4b9 (diff)
downloadmic-6d1d038329acc59e9a0bdf015e7d97b664f2d3d9.tar.gz
mic-6d1d038329acc59e9a0bdf015e7d97b664f2d3d9.tar.bz2
mic-6d1d038329acc59e9a0bdf015e7d97b664f2d3d9.zip
Fix the bug that use local mic-bootstrap to run mic.
Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87
-rw-r--r--mic/bootstrap.py2
1 files changed, 1 insertions, 1 deletions
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):