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:
Panu Matilainen 2017-08-18 12:46:59 +03:00
parent 4afe09cbcf
commit 054de0f50f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}