From 57907afa36a6abd22ca371866dd36ae68455b647 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 18 Jul 1996 21:42:12 +0000 Subject: [PATCH] v2 packages included improper OS tags, so ignore them CVS patchset: 892 CVS date: 1996/07/18 21:42:12 --- lib/install.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/install.c b/lib/install.c index 43585b6..63c99fb 100644 --- a/lib/install.c +++ b/lib/install.c @@ -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)) { -- 2.7.4