make --test work for source packages
authorewt <devnull@localhost>
Thu, 4 Feb 1999 05:10:05 +0000 (05:10 +0000)
committerewt <devnull@localhost>
Thu, 4 Feb 1999 05:10:05 +0000 (05:10 +0000)
CVS patchset: 2772
CVS date: 1999/02/04 05:10:05

install.c

index 0e975f2..0081ddb 100644 (file)
--- a/install.c
+++ b/install.c
@@ -289,8 +289,9 @@ int doInstall(const char * rootdir, const char ** argv, int installFlags,
                continue;
            }
 
-           numFailed += rpmInstallSourcePackage(rootdir, fd, NULL,
-                           showProgress, (void *) notifyFlags, NULL);
+           if (!(installFlags & RPMINSTALL_TEST))
+               numFailed += rpmInstallSourcePackage(rootdir, fd, NULL,
+                               showProgress, (void *) notifyFlags, NULL);
 
            fdClose(fd);
        }