summaryrefslogtreecommitdiff
path: root/lib/package.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-08-31 14:58:53 +0000
committerewt <devnull@localhost>1996-08-31 14:58:53 +0000
commitb72002c101140c2a72d031adc62f417286ba5dcf (patch)
treee84e9913ec72fb3f1b3a59714f4902942ee794c8 /lib/package.c
parent5153d3b436fb4a0fa8dbf758e126f64e04f59188 (diff)
downloadrpm-b72002c101140c2a72d031adc62f417286ba5dcf.tar.gz
rpm-b72002c101140c2a72d031adc62f417286ba5dcf.tar.bz2
rpm-b72002c101140c2a72d031adc62f417286ba5dcf.zip
pkReadHdr() shouldn't fail on minor number differences
CVS patchset: 1000 CVS date: 1996/08/31 14:58:53
Diffstat (limited to 'lib/package.c')
-rw-r--r--lib/package.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/package.c b/lib/package.c
index 9272a4f98..e7a767681 100644
--- a/lib/package.c
+++ b/lib/package.c
@@ -73,11 +73,9 @@ int pkgReadHeader(int fd, Header * hdr, int * isSource, int * major,
arch = 1; /* old versions of RPM only supported Linux */
addEntry(*hdr, RPMTAG_OS, INT8_TYPE, &arch, 1);
} else if (lead.major == 2 || lead.major == 3) {
- if (lead.minor) {
- error(RPMERR_NEWPACKAGE, "only packages with minor numbers = 0"
- " are supported by this version of RPM");
- return 2;
- }
+ /* minor number differences indicate backwards compatible
+ changes */
+
if (readSignature(fd, NULL, lead.signature_type)) {
return 2;
}