Exemplo n.º 1
0
def get_pkg_ref_count(request, pkg_path):
    '''Returns the number of pkginfo files referencing a given pkg_path'''
    LOGGER.debug("Got request for pkg ref count for %s", pkg_path)
    return HttpResponse(json.dumps(Catalog.get_pkg_ref_count(pkg_path)),
                        content_type='application/json')
Exemplo n.º 2
0
Arquivo: views.py Projeto: munki/mwa2
def get_pkg_ref_count(request, pkg_path):
    """Returns the number of pkginfo files referencing a given pkg_path"""
    LOGGER.debug("Got request for pkg ref count for %s", pkg_path)
    return HttpResponse(json.dumps(Catalog.get_pkg_ref_count(pkg_path)), content_type="application/json")