Did I find the right examples for you? yes no

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

src/o/e/oe-core-HEAD/scripts/lib/mic/creator.py   oe-core(Download)
            if os.path.exists(configmgr.create[cdir]) \
              and not os.path.isdir(configmgr.create[cdir]):
                msger.error('Invalid directory specified: %s' \
                            % configmgr.create[cdir])
 
        if self.options.local_pkgs_path is not None:
            if not os.path.exists(self.options.local_pkgs_path):
                msger.error('Local pkgs directory: \'%s\' not exist' \
                msg = "%s: %s\nTry '%s help' for info.\n"\
                      % (self.name, ex, self.name)
                msger.error(msg)
 
            except cmdln.StopOptionProcessing, ex:

src/m/i/mic-HEAD/mic/creator.py   mic(Download)
        if self.options.local_pkgs_path is not None:
            if not os.path.exists(self.options.local_pkgs_path):
                msger.error('Local pkgs directory: \'%s\' not exist' \
                              % self.options.local_pkgs_path)
            configmgr.create['local_pkgs_path'] = self.options.local_pkgs_path
                msg = "%s: %s\nTry '%s help' for info.\n"\
                      % (self.name, ex, self.name)
                msger.error(msg)
 
            except cmdln.StopOptionProcessing, ex:
 
        if os.geteuid() != 0 and args[0] != 'help':
            msger.error('root permission is required to continue, abort')
 
        return self.cmd(args)

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/oe/misc.py   oe-core(Download)
 
    if rc == 127: # shell command-not-found
        msger.error("A native (host) program required to build the image "
                    "was not found (see details above). Please make sure "
                    "it's installed and try again.")

src/o/e/oe-core-HEAD/scripts/lib/mic/imager/loop.py   oe-core(Download)
                MyDiskMount = fs.VfatDiskMount
            else:
                msger.error('Cannot support fstype: %s' % fstype)
 
            loop['loop'] = MyDiskMount(fs.SparseLoopbackDisk(

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/imager/loop_plugin.py   oe-core(Download)
                myDiskMount = fs_related.VfatDiskMount
            else:
                msger.error("Cannot support fstype: %s" % fstype)
 
            name = os.path.join(tmpdir, name)

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/source/bootimg-pcbios.py   oe-core(Download)
 
        if not os.path.exists(mbrfile):
            msger.error("Couldn't find %s.  If using the -e option, do you have the right MACHINE set in local.conf?  If not, is the bootimg_dir path correct?" % mbrfile)
 
        full_path = cr._full_path(workdir, disk_name, "direct")
            bootimg_dir = get_bitbake_var("STAGING_DATADIR")
            if not bootimg_dir:
                msger.error("Couldn't find STAGING_DATADIR, exiting\n")
            # just so the result notes display it
            cr.set_bootimg_dir(bootimg_dir)

src/o/e/oe-core-HEAD/scripts/lib/mic/conf.py   oe-core(Download)
    def __set_ksconf(self, ksconf):
        if not os.path.isfile(ksconf):
            msger.error('Cannot find ks file: %s' % ksconf)
 
        self.__ksconf = ksconf
                scheme = m.group(1)
                if scheme not in ('http', 'https', 'ftp', 'socks'):
                    msger.error("%s: proxy scheme is incorrect" % siteconf)
            else:
                msger.warning("%s: proxy url w/o scheme, use http as default"
    def set_runtime(self, runtime):
        if runtime not in ("bootstrap", "native"):
            msger.error("Invalid runtime mode: %s" % runtime)
 
        if misc.get_distro()[0] in ("tizen", "Tizen"):

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/source/rootfs.py   oe-core(Download)
        if not bitbake_env_lines:
            msg = "Couldn't get bitbake environment, exiting."
            msger.error(msg)
 
        image_rootfs_dir = find_artifact(bitbake_env_lines, "IMAGE_ROOTFS")
        if not os.path.isdir(image_rootfs_dir):
            msg = "No valid artifact IMAGE_ROOTFS from image named"
            msg += " %s has been found at %s, exiting.\n" % \
                (rootfs_dir, image_rootfs_dir)
            msger.error(msg)
            if not 'ROOTFS_DIR' in krootfs_dir:
                msg = "Couldn't find --rootfs-dir, exiting"
                msger.error(msg)
            rootfs_dir = krootfs_dir['ROOTFS_DIR']
        else:
                msg = "Couldn't find --rootfs-dir=%s connection"
                msg += " or it is not a valid path, exiting"
                msger.error(msg % part.rootfs)
 
        real_rootfs_dir = self.__get_rootfs_dir(rootfs_dir)

src/m/i/mic-HEAD/mic/imager/loop.py   mic(Download)
                MyDiskMount = fs.VfatDiskMount
            else:
                msger.error('Cannot support fstype: %s' % fstype)
 
            loop['loop'] = MyDiskMount(fs.SparseLoopbackDisk(

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/source/bootimg-efi.py   oe-core(Download)
            bootimg_dir = get_bitbake_var("HDDDIR")
            if not bootimg_dir:
                msger.error("Couldn't find HDDDIR, exiting\n")
            # just so the result notes display it
            cr.set_bootimg_dir(bootimg_dir)

  1 | 2  Next