summaryrefslogtreecommitdiff
path: root/lib/package.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-05-30 19:30:28 +0000
committerjbj <devnull@localhost>2000-05-30 19:30:28 +0000
commit835c1caaf3b7a8edba8f04ea3f4973fd341b296e (patch)
treed3b56e78908bcfb76229ba2b8335b282fbe1d655 /lib/package.c
parentf5faf376691c17a964c8c7e7decf4ea3ad265f1a (diff)
downloadlibrpm-tizen-835c1caaf3b7a8edba8f04ea3f4973fd341b296e.tar.gz
librpm-tizen-835c1caaf3b7a8edba8f04ea3f4973fd341b296e.tar.bz2
librpm-tizen-835c1caaf3b7a8edba8f04ea3f4973fd341b296e.zip
- mark packaging with version 4 to reflect filename/provide changes.
- change next version from 3.1 to 4.0 to reflect package format change. CVS patchset: 3766 CVS date: 2000/05/30 19:30:28
Diffstat (limited to 'lib/package.c')
-rw-r--r--lib/package.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/package.c b/lib/package.c
index 182924cf4..a5e347de5 100644
--- a/lib/package.c
+++ b/lib/package.c
@@ -231,7 +231,7 @@ static int readPackageHeaders(FD_t fd, /*@out@*/struct rpmlead * leadPtr,
return 1;
}
- switch(lead->major) {
+ switch (lead->major) {
#if defined(ENABLE_V1_PACKAGES)
case 1:
rpmMessage(RPMMESS_DEBUG, _("package is a version one package!\n"));
@@ -265,6 +265,7 @@ static int readPackageHeaders(FD_t fd, /*@out@*/struct rpmlead * leadPtr,
case 2:
case 3:
+ case 4:
if (rpmReadSignature(fd, sigs, lead->signature_type)) {
return 2;
}
@@ -302,14 +303,16 @@ static int readPackageHeaders(FD_t fd, /*@out@*/struct rpmlead * leadPtr,
only saves memory (nice), but gives fingerprinting a nice, fat
speed boost (very nice). Go ahead and convert old headers to
the new style (this is a noop for new headers) */
- compressFilelist(*hdr);
+ if (lead->major < 4) {
+ compressFilelist(*hdr);
+ }
/* XXX binary rpms always have RPMTAG_SOURCERPM, source rpms do not */
if (lead->type == RPMLEAD_SOURCE) {
if (!headerIsEntry(*hdr, RPMTAG_SOURCEPACKAGE))
headerAddEntry(*hdr, RPMTAG_SOURCEPACKAGE, RPM_INT32_TYPE,
&true, 1);
- } else {
+ } else if (lead->major < 4) {
/* Retrofit "Provide: name = EVR" for binary packages. */
providePackageNVR(*hdr);
}