Did I find the right examples for you? yes no

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

src/o/e/oe-core-HEAD/scripts/lib/mic/creator.py   oe-core(Download)
                        largs.append(argv.pop(0))
                    except IndexError:
                        raise errors.Usage("option %s requires arguments" % arg)
 
            else:
            logfile_abs_path = abspath(self.options.logfile)
            if os.path.isdir(logfile_abs_path):
                raise errors.Usage("logfile's path %s should be file"
                                   % self.options.logfile)
            if not os.path.exists(os.path.dirname(logfile_abs_path)):
            for infotype in self.options.record_pkgs.split(','):
                if infotype not in ('name', 'content', 'license', 'vcs'):
                    raise errors.Usage('Invalid pkg recording: %s, valid ones:'
                                       ' "name", "content", "license", "vcs"' \
                                       % infotype)
                configmgr.create['arch'] = self.options.arch
            else:
                raise errors.Usage('Invalid architecture: "%s".\n'
                                   '  Supported architectures are: \n'
                                   '  %s' % (self.options.arch,
            for pkgtype in self.options.install_pkgs.split(','):
                if pkgtype not in ('source', 'debuginfo', 'debugsource'):
                    raise errors.Usage('Invalid parameter specified: "%s", '
                                       'valid values: source, debuginfo, '
                                       'debusource' % pkgtype)

src/m/i/mic-HEAD/mic/creator.py   mic(Download)
                        largs.append(argv.pop(0))
                    except IndexError:
                        raise errors.Usage("option %s requires arguments" % arg)
 
            else:
            for infotype in self.options.record_pkgs.split(','):
                if infotype not in ('name', 'content', 'license'):
                    raise errors.Usage('Invalid pkg recording: %s, valid ones:'
                                       ' "name", "content", "license"' \
                                       % infotype)
                configmgr.create['arch'] = self.options.arch
            else:
                raise errors.Usage('Invalid architecture: "%s".\n'
                                   '  Supported architectures are: \n'
                                   '  %s' % (self.options.arch,
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")
 
        if not os.path.exists(args[0]):

src/m/i/mic-HEAD/plugins/imager/liveusb_plugin.py   mic(Download)
 
        if not args:
            raise errors.Usage("need one argument as the path of ks file")
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")

src/m/i/mic-HEAD/plugins/imager/livecd_plugin.py   mic(Download)
 
        if not args:
            raise errors.Usage("need one argument as the path of ks file")
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")

src/m/i/mic-HEAD/plugins/imager/loop_plugin.py   mic(Download)
 
        if not args:
            raise errors.Usage("need one argument as the path of ks file")
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")

src/m/i/mic-HEAD/plugins/imager/raw_plugin.py   mic(Download)
 
        if not args:
            raise errors.Usage("need one argument as the path of ks file")
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")

src/m/i/mic-HEAD/plugins/imager/fs_plugin.py   mic(Download)
 
        if not args:
            raise errors.Usage("need one argument as the path of ks file")
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/imager/liveusb_plugin.py   oe-core(Download)
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")
 
        creatoropts = configmgr.create

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/imager/livecd_plugin.py   oe-core(Download)
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")
 
        creatoropts = configmgr.create

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/imager/loop_plugin.py   oe-core(Download)
 
        if len(args) != 1:
            raise errors.Usage("Extra arguments given")
 
        creatoropts = configmgr.create

  1 | 2  Next