From 5f567af6b233bd758c5f21fc648d42a54868a76b Mon Sep 17 00:00:00 2001 From: ewt Date: Tue, 15 Oct 1996 02:23:03 +0000 Subject: use cpio specified by rpmrc CVS patchset: 1090 CVS date: 1996/10/15 02:23:03 --- build/pack.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/pack.c b/build/pack.c index 88742562a..bd2e21144 100644 --- a/build/pack.c +++ b/build/pack.c @@ -189,6 +189,7 @@ static int cpio_gzip(int fd, char *tempdir, char *writePtr, int toCpio[2]; int fromCpio[2]; int toGzip[2]; + char * cpiobin; int writeBytesLeft, bytesWritten; @@ -198,6 +199,9 @@ static int cpio_gzip(int fd, char *tempdir, char *writePtr, int status; void *oldhandler; + cpiobin = getVar(RPMVAR_CPIOBIN); + if (!cpiobin) cpiobin = "cpio"; + *archiveSize = 0; pipe(toCpio); @@ -235,7 +239,7 @@ static int cpio_gzip(int fd, char *tempdir, char *writePtr, } } - execlp("cpio", "cpio", + execlp(cpiobin, cpiobin, (isVerbose()) ? "-ov" : "-o", (tempdir) ? "-LH" : "-H", "crc", NULL); -- cgit v1.2.3