def _package_dict(package):
 result = {'name': package.name, 'arch': package.arch, 'epoch': str(package.epoch), 'release': package.release, 'version': package.version, 'repo': package.repoid}
 result['nevra'] = '{epoch}:{name}-{version}-{release}.{arch}'.format(**result)
 return result

def _package_dict ( package ) : result = { 'name' : package . name , 'arch' : package . arch , 'epoch' : str ( package . epoch ) , 'release' : package . release , 'version' : package . version , 'repo' : package . repoid } result [ 'nevra' ] = '{epoch}:{name}-{version}-{release}.{arch}' . format ( ** result ) return result
return a dictionary of information for the package .