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: accepted/tizen/devbase/tools/20200415.093504~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02bd8d71840275c5f031ff786fe19334b7163718;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):