use cpio specified in rpmrc
authorewt <devnull@localhost>
Mon, 14 Oct 1996 23:49:27 +0000 (23:49 +0000)
committerewt <devnull@localhost>
Mon, 14 Oct 1996 23:49:27 +0000 (23:49 +0000)
CVS patchset: 1081
CVS date: 1996/10/14 23:49:27

lib/install.c

index 7d291fa..a7d8330 100644 (file)
@@ -567,13 +567,15 @@ static int installArchive(char * prefix, int fd, struct fileToInstall * files,
     
     args = alloca(sizeof(char *) * (fileCount + 10));
 
-    args[i++] = "cpio";
+    args[i++] = getVar(RPMVAR_CPIOBIN);
     args[i++] = "--extract";
     args[i++] = "--unconditional";
     args[i++] = "--preserve-modification-time";
     args[i++] = "--make-directories";
     args[i++] = "--quiet";
 
+    if (!args[0]) args[0] = "cpio";
+
     if (needSecondPipe)
        args[i++] = "--verbose";