Add function to return full NEVRA of a dependency

This commit is contained in:
Brian C. Lane 2018-01-26 16:54:47 -08:00
parent c92373ecd6
commit 7372faa969

View File

@ -146,6 +146,10 @@ def dep_evra(dep):
else:
return dep["epoch"]+":"+dep["version"]+"-"+dep["release"]+"."+dep["arch"]
def dep_nevra(dep):
"""Return the name-epoch:version-release.arch"""
return dep["name"]+"-"+dep_evra(dep)
def projects_list(yb):
"""Return a list of projects