Dont bother with separate notifications on multiple file dep matches

This commit is contained in:
Panu Matilainen 2012-09-18 06:27:57 +03:00
parent da9361f2d6
commit 272eaae387
1 changed files with 3 additions and 3 deletions

View File

@ -335,8 +335,6 @@ static rpmte * rpmalAllFileSatisfiesDepend(const rpmal al, const rpmds ds)
if (alp->p == NULL) // deleted
continue;
rpmdsNotify(ds, "(added files)", 0);
ret[found] = alp->p;
found++;
}
@ -371,8 +369,10 @@ static rpmte * rpmalAllSatisfiesDepend(const rpmal al, const rpmds ds)
if (!obsolete && *name == '/') {
/* First, look for files "contained" in package ... */
ret = rpmalAllFileSatisfiesDepend(al, ds);
if (ret != NULL && *ret != NULL)
if (ret != NULL && *ret != NULL) {
rpmdsNotify(ds, "(added files)", 0);
return ret;
}
/* ... then, look for files "provided" by package. */
ret = _free(ret);
}