We always add EVR and Flags to dependencies, remove bogus condition
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 20 Aug 2009 10:04:21 +0000 (13:04 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 20 Aug 2009 10:04:21 +0000 (13:04 +0300)
build/reqprov.c

index ba6a1e8..e474cdb 100644 (file)
@@ -90,10 +90,8 @@ int addReqProv(rpmSpec spec, Header h, rpmTag tagN,
     /* Avoid adding duplicate dependencies. */
     if (isNewDep(h, nametag, N, EVR, Flags, indextag, index)) {
        headerPutString(h, nametag, N);
-       if (flagtag) {
-           headerPutString(h, versiontag, EVR);
-           headerPutUint32(h, flagtag, &Flags, 1);
-       }
+       headerPutString(h, versiontag, EVR);
+       headerPutUint32(h, flagtag, &Flags, 1);
        if (indextag) {
            headerPutUint32(h, indextag, &index, 1);
        }