Add function to return full NEVRA of a dependency
This commit is contained in:
parent
c92373ecd6
commit
7372faa969
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user