summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-12-06 18:34:49 +0000
committerjbj <devnull@localhost>2001-12-06 18:34:49 +0000
commit5a0508d51fcf84412a8f6a88a09d6dd63a16e47e (patch)
treecf3782de354fb3b37295f75f465c7574110fdb52 /build
parentd7e49147a28f795312b330cbfe68e60798212a93 (diff)
downloadrpm-5a0508d51fcf84412a8f6a88a09d6dd63a16e47e.tar.gz
rpm-5a0508d51fcf84412a8f6a88a09d6dd63a16e47e.tar.bz2
rpm-5a0508d51fcf84412a8f6a88a09d6dd63a16e47e.zip
- 3 madvise calls and a 16Mb mmapped buffer == ~5% install speedup. Wow.
- use db-4.0.14 final internally. CVS patchset: 5215 CVS date: 2001/12/06 18:34:49
Diffstat (limited to 'build')
-rw-r--r--build/pack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/pack.c b/build/pack.c
index 2b6e8493a..1f0e98221 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -425,10 +425,10 @@ int writeRPM(Header *hdrp, const char *fileName, int type,
/*@-branchstate@*/
switch(type) {
case RPMLEAD_SOURCE:
- rpmio_flags = rpmExpand("%{?_source_payload:%{_source_payload}}", NULL);
+ rpmio_flags = rpmExpand("%{?_source_payload}", NULL);
break;
case RPMLEAD_BINARY:
- rpmio_flags = rpmExpand("%{?_binary_payload:%{_binary_payload}}", NULL);
+ rpmio_flags = rpmExpand("%{?_binary_payload}", NULL);
break;
}
/*@=branchstate@*/
@@ -455,7 +455,7 @@ int writeRPM(Header *hdrp, const char *fileName, int type,
/* Create and add the cookie */
if (cookie) {
- sprintf(buf, "%s %d", buildHost(), (int) time(NULL));
+ sprintf(buf, "%s %d", buildHost(), (int) (*getBuildTime()));
*cookie = xstrdup(buf);
(void) headerAddEntry(h, RPMTAG_COOKIE, RPM_STRING_TYPE, *cookie, 1);
}