passes netSharedPath() from rpmrc
authorewt <devnull@localhost>
Mon, 21 Oct 1996 02:14:02 +0000 (02:14 +0000)
committerewt <devnull@localhost>
Mon, 21 Oct 1996 02:14:02 +0000 (02:14 +0000)
CVS patchset: 1123
CVS date: 1996/10/21 02:14:02

install.c

index ff8f39b..a4ea4b1 100644 (file)
--- a/install.c
+++ b/install.c
@@ -53,6 +53,7 @@ static int installPackages(char * rootdir, char ** packages, char * location,
     char * chptr;
     int rc;
     notifyFunction fn;
+    char * netsharedPath = NULL;
 
     if (interfaceFlags & RPMINSTALL_PERCENT)
        fn = printPercent;
@@ -61,6 +62,8 @@ static int installPackages(char * rootdir, char ** packages, char * location,
     else
        fn = NULL;
 
+    netsharedPath = getVar(RPMVAR_NETSHAREDPATH);
+
     for (i = 0, filename = packages; i < numPackages; i++, filename++) {
        if (!*filename) continue;
 
@@ -89,7 +92,7 @@ static int installPackages(char * rootdir, char ** packages, char * location,
 
        if (db) {
            rc = rpmInstallPackage(rootdir, db, fd, location, installFlags, fn, 
-                                  printFormat);
+                                  printFormat, netsharedPath);
        } else {
            if (installFlags &= INSTALL_TEST) {
                message(MESS_DEBUG, "stopping source install as we're "