diff options
author | ewt <devnull@localhost> | 1996-10-15 02:23:03 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-10-15 02:23:03 +0000 |
commit | 5f567af6b233bd758c5f21fc648d42a54868a76b (patch) | |
tree | 0767b8cfd4049daed70ce7bca0d0026fd876cc7f /build | |
parent | 278579be90e4e31d8bf89685d22015f8a24eca98 (diff) | |
download | rpm-5f567af6b233bd758c5f21fc648d42a54868a76b.tar.gz rpm-5f567af6b233bd758c5f21fc648d42a54868a76b.tar.bz2 rpm-5f567af6b233bd758c5f21fc648d42a54868a76b.zip |
use cpio specified by rpmrc
CVS patchset: 1090
CVS date: 1996/10/15 02:23:03
Diffstat (limited to 'build')
-rw-r--r-- | build/pack.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |