diff options
-rw-r--r-- | mic/bootstrap.py | 2 |
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): |