Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/b/o/bodhi-HEAD/bodhi/models/models.py   bodhi(Download)
 
from bodhi import buildsys, mail
from bodhi.util import (
    header, build_evr, rpm_fileheader, get_nvr, flash_log,
    get_age, get_critpath_pkgs,
    def get_latest_srpm(self):
        latest = get_nvr(self.get_latest())
        latest_srpm = None
        if latest:
            srpm_path = os.path.join(config.get('build_dir'), latest[0],
                obsoletable = False
                nvr = buildinfo[build.nvr]['nvr']
                if rpm.labelCompare(get_nvr(oldBuild.nvr), nvr) < 0:
                    log.debug("%s is newer than %s" % (nvr, oldBuild.nvr))
                    obsoletable = True
    def close_bug(self, update):
        ver = '-'.join(get_nvr(update.builds[0].nvr)[-2:])
        bugtracker.close(self.bug_id, fixedin=ver)
 
    def modified(self):