Did I find the right examples for you? yes no

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

src/b/o/bodhi-HEAD/tools/metrics.py   bodhi(Download)
from sqlalchemy.sql import and_
 
from bodhi.util import get_db_from_config, header, get_critpath_pkgs
from bodhi.models import Update, Release, UpdateStatus, UpdateType
 
            continue
        updates = db.query(Update).filter_by(release=release)
        critpath_pkgs = get_critpath_pkgs(release.name.lower())
        total = updates.count()
        if not total:

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,
 
        critical = False
        critpath_pkgs = get_critpath_pkgs(data['release'].name.lower())
        if critpath_pkgs:
            for build in data['builds']:
 
        critical = False
        critpath_pkgs = get_critpath_pkgs(up.release.name.lower())
        if critpath_pkgs:
            for build in up.builds:

src/b/o/bodhi-HEAD/tools/pickledb.py   bodhi(Download)
from progressbar import ProgressBar, SimpleProgress, Percentage, Bar
 
from bodhi.util import get_db_from_config, get_critpath_pkgs
 
 
            if whitelist:
                if release.name in whitelist:
                    critpath[release.name] = get_critpath_pkgs(release.name.lower())
                    print('%s critpath packages for %s' % (len(critpath[release.name]),
                                                           release.name))
            else:
                critpath[release.name] = get_critpath_pkgs(release.name.lower())

src/b/o/bodhi-HEAD/alembic/versions/1eb754722e44_default_update_critp.py   bodhi(Download)
 
from bodhi.models import Base, DBSession, Release, Update
from bodhi.util import get_critpath_pkgs
 
 
    for release in DBSession.query(Release):
        relname = release.name
        critpath_pkgs[relname] = sorted(get_critpath_pkgs(relname.lower()))
 
    with transaction.manager:

src/b/o/bodhi-HEAD/bodhi/tests/test_utils.py   bodhi(Download)
from bodhi.models import Update
from bodhi.util import get_db_from_config, get_critpath_pkgs
from bodhi.config import config
 
 
    def test_get_critpath_pkgs(self):
        """Ensure the pkgdb's critpath API works"""
        pkgs = get_critpath_pkgs()
        assert 'kernel' in pkgs, pkgs