1) sets arch properly for v1 packages
2) assumes all v1 packages were built for OS #1 (Linux) CVS patchset: 878 CVS date: 1996/07/17 20:01:45
This commit is contained in:
parent
cf3c76c5aa
commit
85db57fe5d
|
@ -65,8 +65,10 @@ int pkgReadHeader(int fd, Header * hdr, int * isSource) {
|
|||
} else {
|
||||
if (lead.major == 1) {
|
||||
readOldHeader(fd, hdr, isSource);
|
||||
arch = getArchNum();
|
||||
arch = lead.archnum;
|
||||
addEntry(*hdr, RPMTAG_ARCH, INT8_TYPE, &arch, 1);
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue