Did I find the right examples for you? yes no

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

src/m/i/mic-HEAD/mic/bootstrap.py   mic(Download)
        f.close()
    except:
        raise errors.BootstrapError("Load %s/.metadata error" % root)
    else:
        for pkg in metadata.keys():
            m = misc.RPM_RE.match(pkg)
            if m:
                (n, a, v, r) = m.groups()
            else:
                raise errors.BootstrapError("Wrong Format .metadata in %s"
    def _getRootdir(self):
        if not os.path.exists(self._rootdir):
            raise errors.BootstrapError("dir: %s not exist" % self._rootdir)
        return self._rootdir
 
                self._pkgmgr = cls
        if not self._pkgmgr:
            raise errors.BootstrapError("Backend: %s can't be loaded correctly"\
                                        % name)
 
            proxy.unset_proxy_environ()
        except:
            raise errors.BootstrapError("Run in bootstrap fail")
        finally:
            chroot.cleanup_chrootenv(self.rootdir, bindmounts, globalmounts)

src/o/e/oe-core-HEAD/scripts/lib/mic/rt_util.py   oe-core(Download)
        return find_binary_path('mic')
    except errors.CreatorError:
        raise errors.BootstrapError("Can't find mic binary in host OS")
 
 
def get_mic_modpath():
    try:
        import mic
    except ImportError:
        raise errors.BootstrapError("Can't find mic module in host OS")
            pylib = pylibs[0].replace(bootstrap, '')
        else:
            raise errors.BootstrapError("Can't find python site dir in: %s" %
                                        bootstrap)
 
    for key, value in micpaths.items():
        try:
            safecopy(value, _path(eval(key)), False, ["*.pyc", "*.pyo"])
        except (OSError, IOError), err:
            raise errors.BootstrapError(err)

src/m/i/mic-HEAD/mic/rt_util.py   mic(Download)
def get_mic_modpath():
    try:
        import mic
    except ImportError:
        raise errors.BootstrapError('Can\'t find mic module in host OS.')
    bs_mic_pylib = bootstrap_pth + os.path.join(pylib_pth, 'mic')
    if os.path.commonprefix([mic_pylib, bs_mic_pylib]) == mic_pylib:
        raise errors.BootstrapError('Invalid Bootstrap: %s' % bootstrap_pth)
    shutil.rmtree(bs_mic_pylib, ignore_errors = True)
    shutil.copytree(mic_pylib, bs_mic_pylib)
    bs_mic_libpth = bootstrap_pth + os.path.join(lib_pth, 'mic')
    if os.path.commonprefix([mic_libpth, bs_mic_libpth]) == mic_libpth:
        raise errors.BootstrapError('Invalid Bootstrap: %s' % bootstrap_pth)
    shutil.rmtree(bs_mic_libpth, ignore_errors = True)
    shutil.copytree(mic_libpth, bs_mic_libpth)

src/o/e/oe-core-HEAD/scripts/lib/mic/bootstrap.py   oe-core(Download)
 
        if nonexist:
            raise errors.BootstrapError("Can't get rpm binary: %s" %
                                        ','.join(nonexist))
 
            pkgmgr.runInstall()
        except (OSError, IOError, errors.CreatorError), err:
            raise errors.BootstrapError("%s" % err)
 
    def run(self, cmd, chdir, rootdir=None, bindmounts=None):