summaryrefslogtreecommitdiff
path: root/lib/package.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-06-27 18:18:15 +0000
committerewt <devnull@localhost>1996-06-27 18:18:15 +0000
commit13b145e64b00e7f8cc696fb533c99e04aa15a8c5 (patch)
tree4091d49c667b1376493171fb965abcfae9f3d2f2 /lib/package.c
parent5c1b4c03770cc549473df83aa37ba15eb9ef54fc (diff)
downloadlibrpm-tizen-13b145e64b00e7f8cc696fb533c99e04aa15a8c5.tar.gz
librpm-tizen-13b145e64b00e7f8cc696fb533c99e04aa15a8c5.tar.bz2
librpm-tizen-13b145e64b00e7f8cc696fb533c99e04aa15a8c5.zip
supports version 3 packages
CVS patchset: 683 CVS date: 1996/06/27 18:18:15
Diffstat (limited to 'lib/package.c')
-rw-r--r--lib/package.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/package.c b/lib/package.c
index f2264c047..03163e522 100644
--- a/lib/package.c
+++ b/lib/package.c
@@ -64,7 +64,12 @@ int pkgReadHeader(int fd, Header * hdr, int * isSource) {
readOldHeader(fd, hdr, isSource);
arch = getArchNum();
addEntry(*hdr, RPMTAG_ARCH, INT8_TYPE, &arch, 1);
- } else if (lead.major == 2) {
+ } 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;
+ }
if (!readSignature(fd, lead.signature_type, NULL)) {
return 2;
}