don't pay attention to reqflags unless a reqversion is present <sigh>
authorewt <devnull@localhost>
Sun, 10 May 1998 18:37:35 +0000 (18:37 +0000)
committerewt <devnull@localhost>
Sun, 10 May 1998 18:37:35 +0000 (18:37 +0000)
CVS patchset: 2115
CVS date: 1998/05/10 18:37:35

lib/depends.c

index 911b4cf..115c5b7 100644 (file)
@@ -721,7 +721,7 @@ int headerMatchesDepFlags(Header h, char * reqInfo, int reqFlags) {
 
     headerGetEntry(h, RPMTAG_NAME, &type, (void *) &name, &count);
 
-    if (!(reqFlags & RPMSENSE_SENSEMASK)) {
+    if (!(reqFlags & RPMSENSE_SENSEMASK) || !reqInfo || !strlen(reqInfo)) {
        return 1;
     }