supports version 3 packages

CVS patchset: 683
CVS date: 1996/06/27 18:18:15
This commit is contained in:
ewt 1996-06-27 18:18:15 +00:00
parent 5c1b4c0377
commit 13b145e64b
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}