Did I find the right examples for you? yes no

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

src/c/o/cobbler-HEAD/cobbler/action_reposync.py   cobbler(Download)
                    utils.die(self.logger, "yum is required to use this feature")
 
                rmd = yum.repoMDObject.RepoMD('', "%s/.origin/repomd.xml" % (dirname))
                if "group" in rmd.repoData:
                    groupmdfile = rmd.getData("group").location[1]
            if not os.path.isdir(repodata_path):
                os.makedirs(repodata_path)
            rmd = yum.repoMDObject.RepoMD('', "%s/repomd.xml" % (temp_path))
            for mdtype in rmd.repoData.keys():
                # don't download metadata files that are created by default

src/b/o/bodhi-HEAD/bodhi/util.py   bodhi(Download)
    try:
        rm = urlgrabber.urlopen(rf)
        repomd = yum.repoMDObject.RepoMD('foo', rm)
        for t in repomd.fileTypes():
            data = repomd.getData(t)

src/c/h/checksec-HEAD/rpm-shell.py   checksec(Download)
def load():
    repomdpath = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                             "data", "repodata", "repomd.xml")
    rmdo = repoMDObject.RepoMD("rawhide", repomdpath)
    plocation = rmdo.repoData["primary"].location[1]

src/c/h/checksec-HEAD/bug-shell.py   checksec(Download)
def load():
    repomdpath = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                             "data", "repodata", "repomd.xml")
    rmdo = repoMDObject.RepoMD("F19", repomdpath)
    plocation = rmdo.repoData["primary"].location[1]