def _rpm_qf(pathname):
    try:
        p = subprocess.Popen(['rpm', '--qf=%{NAME}', '-qf', pathname],
                             close_fds=True,
                             stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE)
    except OSError:
        return []
    stdout, stderr = p.communicate()
    if 0 != p.returncode:
        return []
    return [stdout]
Return a list of package names that contain `pathname` or `[]`.  RPM
dataset/ETHPy150Open devstructure/blueprint/blueprint/backend/files.py/_rpm_qf