projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e75c74c
)
Fix the bug that use local mic-bootstrap to run mic.
author
mao xiaojuan
<xiaojuan.mao@samsung.com>
Tue, 28 Nov 2017 08:58:58 +0000
(16:58 +0800)
committer
yuhuan.yang
<yuhuan.yang@samsung.com>
Fri, 26 Jan 2018 08:36:25 +0000
(16:36 +0800)
Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87
mic/bootstrap.py
patch
|
blob
|
history
diff --git
a/mic/bootstrap.py
b/mic/bootstrap.py
index 2801678c0ce02d2650389936cdf04bb448c19fe9..b51b79a061ab159c6558315f16b011dfcf2327fa 100644
(file)
--- 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):