better reporting for v1.0 packages
authorroot <devnull@localhost>
Tue, 27 Feb 1996 22:50:55 +0000 (22:50 +0000)
committerroot <devnull@localhost>
Tue, 27 Feb 1996 22:50:55 +0000 (22:50 +0000)
CVS patchset: 433
CVS date: 1996/02/27 22:50:55

checksig.c

index e1675e6..ac80352 100644 (file)
@@ -30,6 +30,11 @@ int doCheckSig(char **argv)
            res = -1;
            continue;
        }
+       if (lead.major == 1) {
+           fprintf(stderr, "%s: No signature available (v1.0 RPM)\n", rpm);
+           res = -1;
+           continue;
+       }
        if (!readSignature(fd, lead.signature_type, (void **) &sig)) {
            fprintf(stderr, "%s: readSignature failed\n", rpm);
            res = -1;