Did I find the right examples for you? yes no

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

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/rpmmisc.py   oe-core(Download)
    def _localprint(self, msg):
        if self.output:
            msger.info(msg)
 
    def _makefmt(self, percent, progress = True):
                        self.lastmsg = msg
 
                        msger.info(msg)
 
                        if self.total_installed == self.total_actions:
 
    # show the license file
    msger.info('For the software packages in this yum repo:')
    msger.info('    %s: %s' % (name, baseurl))
    msger.info('There is an "End User License Agreement" file that need to be checked.')

src/m/i/mic-HEAD/mic/utils/rpmmisc.py   mic(Download)
    def start(self, filename, url, *args, **kwargs):
        self.url = url
        self.termwidth = terminal_width()
        msger.info("\r%-*s" % (self.termwidth, " "))
        if self.total is None:
            msger.info("\rRetrieving %s ..." % truncate_url(self.url, self.termwidth - 15))
        else:
            msger.info("\rRetrieving %s [%d/%d] ..." % (truncate_url(self.url, self.termwidth - 25), self.counter, self.total))
    def _localprint(self, msg):
        if self.output:
            msger.info(msg)
 
    def _makefmt(self, percent, progress = True):
                        self.lastmsg = msg
 
                        msger.info(msg)
 
                        if self.total_installed == self.total_actions:

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/imager/raw_plugin.py   oe-core(Download)
            creator.cleanup()
 
        msger.info("Finished.")
        return 0
 
        img_fstype = "ext3"
 
        msger.info("Partition Table:")
        partnum = []
        for line in runner.outs([partedcmd, "-s", img, "print"]).splitlines():
        args = ['dd', "if=%s" % srcloop.partitions[0]['device'], "of=%s" % image]
 
        msger.info("`dd` image ...")
        rc = runner.show(args)
        srcloop.cleanup()

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/backend/zypppkgmgr.py   oe-core(Download)
        localpkgs = self.localpkgs.keys()
 
        msger.info("Checking packages cached ...")
        for po in dlpkgs:
            # Check if it is cached locally
 
        download_count =  total_count - cached_count
        msger.info("Packages: %d Total, %d Cached, %d Missed" \
                   % (total_count, cached_count, download_count))
 
        try:
            if download_count > 0:
                msger.info("Downloading packages ...")
            return
 
        msger.info('Refreshing repository: %s ...' % name)
        self.repo_manager.buildCache(repo, zypp.RepoManager.BuildIfNeeded)
 
            zconfig.setSystemArchitecture(zypp.Arch(self.target_arch))
 
        msger.info("zypp architecture is <%s>" % zconfig.systemArchitecture())
 
        # repoPackagesCachePath is corrected by this

src/m/i/mic-HEAD/mic/rt_util.py   mic(Download)
 
    if runmode == 'bootstrap':
        msger.info("Use bootstrap runtime environment")
        name = "micbootstrap"
        try:
            #for item in repostrs:
            #    repolist.append(convert_repostr(item))
            msger.info("cannot find valid bootstrap, please check the config")
            msger.info("Back to native running")
            return
    setattr(bootstrap_env, 'rootdir', name)
    if not bootstrap_lst or not name in bootstrap_lst:
        msger.info("Creating bootstrap %s under %s" % \
                   (name, bootstrap_env.homedir))
        bootstrap_env.create(name, repolist)
 
    msger.info("Use bootstrap: %s" % bootstrap_env.rootdir)

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/backend/yumpkgmgr.py   oe-core(Download)
        download_total_size = sum(map(lambda x: int(x.packagesize), dlpkgs))
 
        msger.info("\nChecking packages cached ...")
        for po in dlpkgs:
            local = po.localPkg()
                               "please resize partition size in ks file")
 
        msger.info("Packages: %d Total, %d Cached, %d Missed" \
                   % (total_count, cached_count, total_count - cached_count))
 

src/m/i/mic-HEAD/plugins/imager/raw_plugin.py   mic(Download)
            creator.cleanup()
 
        msger.info("Finished.")
        return 0
 
        img_fstype = "ext3"
 
        msger.info("Partition Table:")
        partnum = []
        for line in runner.outs([partedcmd, "-s", img, "print"]).splitlines():
        args = ['dd', "if=%s" % srcloop.partitions[0]['device'], "of=%s" % image]
 
        msger.info("`dd` image ...")
        rc = runner.show(args)
        srcloop.cleanup()

src/m/i/mic-HEAD/plugins/backend/zypppkgmgr.py   mic(Download)
        localpkgs = self.localpkgs.keys()
 
        msger.info("Checking packages cache and packages integrity ...")
        for po in dlpkgs:
            # Check if it is cached locally
 
        download_count =  total_count - cached_count
        msger.info("%d packages to be installed, "
                   "%d packages gotten from cache, "
                   "%d packages to be downloaded" \
                   % (total_count, cached_count, download_count))
 
        try:
            if download_count > 0:
                msger.info("Downloading packages ...")
            return
 
        msger.info('Refreshing repository: %s ...' % name)
        self.repo_manager.buildCache(repo, zypp.RepoManager.BuildIfNeeded)
 
            zconfig.setSystemArchitecture(zypp.Arch(self.target_arch))
 
        msger.info("zypp architecture is <%s>" % zconfig.systemArchitecture())
 
        # repoPackagesCachePath is corrected by this

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/misc.py   oe-core(Download)
        return ksconf
 
    msger.info("Substitute macro variable @BUILD_ID@/@ARCH@ in ks: %s" % ksconf)
    ksc = ksc.replace("@ARCH@", arch)
    ksc = ksc.replace("@BUILD_ID@", release)
    # disable selinux, selinux will block qemu emulator to run
    if os.path.exists("/usr/sbin/setenforce"):
        msger.info('Try to disable selinux')
        runner.show(["/usr/sbin/setenforce", "0"])
 
                shutil.copy(src_pkg, destdir)
                src_pkgs.append(src_pkg)
    msger.info("%d source packages gotten from cache" % cached_count)
 
    return src_pkgs

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/grabber.py   oe-core(Download)
    def start(self, filename, url, *args, **kwargs):
        self.url = url
        self.termwidth = terminal_width()
        msger.info("\r%-*s" % (self.termwidth, " "))
        if self.total is None:
            msger.info("\rRetrieving %s ..." % truncate_url(self.url, self.termwidth - 15))
        else:
            msger.info("\rRetrieving %s [%d/%d] ..." % (truncate_url(self.url, self.termwidth - 25), self.counter, self.total))

  1 | 2 | 3 | 4  Next