v2 packages included improper OS tags, so ignore them
authorewt <devnull@localhost>
Thu, 18 Jul 1996 21:42:12 +0000 (21:42 +0000)
committerewt <devnull@localhost>
Thu, 18 Jul 1996 21:42:12 +0000 (21:42 +0000)
CVS patchset: 892
CVS date: 1996/07/18 21:42:12

lib/install.c

index 43585b6..63c99fb 100644 (file)
@@ -1492,11 +1492,9 @@ static int osOkay(Header h) {
     /* make sure we're trying to install this on the proper os */
     getEntry(h, RPMTAG_OS, &type, (void **) &pkgOs, &count);
     if (type == INT8_TYPE) {
-       /* old os handling */
-       pkgOsNum = pkgOs;
-       if (getOsNum() != *pkgOsNum) {
-           return 0;
-       }
+       /* v1 packages and v2 packages both used improper OS numbers, so just
+          deal with it hope things work */
+       return 0;
     } else {
        /* new os handling */
        if (!rpmOsScore(pkgOs)) {