Use silent lookup for debuginfo packages (#1482144)
Noarch packages do not have debuginfo, this was causing harmless
but bogus error messages via lookupPackage(). Depends on commit
4afe09cbcf
.
This commit is contained in:
parent
4afe09cbcf
commit
054de0f50f
|
@ -2981,7 +2981,7 @@ static int addDebugSrc(Package pkg, char *buildroot)
|
|||
static Package findDebuginfoPackage(rpmSpec spec)
|
||||
{
|
||||
Package pkg = NULL;
|
||||
if (lookupPackage(spec, "debuginfo", PART_SUBNAME, &pkg))
|
||||
if (lookupPackage(spec, "debuginfo", PART_SUBNAME|PART_QUIET, &pkg))
|
||||
return NULL;
|
||||
return pkg && pkg->fileList ? pkg : NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue