| |
@@ -4248,7 +4248,7 @@
|
| |
"""Return information about a build.
|
| |
|
| |
buildInfo may be either a int ID, a string NVR, or a map containing
|
| |
- 'name', 'version' and 'release.
|
| |
+ 'name', 'version' and 'release'.
|
| |
|
| |
A map will be returned containing the following keys*:
|
| |
id: build ID
|
| |
@@ -4695,7 +4695,7 @@
|
| |
Returns a dictionary whose keys are type names and whose values are
|
| |
the type info corresponding to that type
|
| |
"""
|
| |
- if not isinstance(buildInfo, dict) or 'extra' not in buildInfo:
|
| |
+ if not isinstance(buildInfo, dict) or 'extra' not in buildInfo or 'id' not in buildInfo:
|
| |
binfo = get_build(buildInfo, strict=strict)
|
| |
if not binfo:
|
| |
return None
|
| |
if there is no id, call
get_build
to fetch the build data (n-v-r inside will be used or the data is invalid)fixes: #3091