Dont bother with separate notifications on multiple file dep matches
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Sep 2012 03:27:57 +0000 (06:27 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Sep 2012 03:27:57 +0000 (06:27 +0300)
lib/rpmal.c

index 4aa795c..adab5fe 100644 (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);
     }