From: mao xiaojuan Date: Tue, 28 Nov 2017 08:58:58 +0000 (+0800) Subject: Fix the bug that use local mic-bootstrap to run mic. X-Git-Tag: staging-released-tools-18.01.7~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e4fecc2dd539590331dda60daa625874592df7c;p=tools%2Fmic.git Fix the bug that use local mic-bootstrap to run mic. Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87 --- 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):