diff options
author | ewt <devnull@localhost> | 1996-08-31 14:58:53 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-08-31 14:58:53 +0000 |
commit | b72002c101140c2a72d031adc62f417286ba5dcf (patch) | |
tree | e84e9913ec72fb3f1b3a59714f4902942ee794c8 /lib/package.c | |
parent | 5153d3b436fb4a0fa8dbf758e126f64e04f59188 (diff) | |
download | rpm-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.c | 8 |
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; } |