Orphan.
authorjbj <devnull@localhost>
Wed, 12 Jun 2002 14:54:06 +0000 (14:54 +0000)
committerjbj <devnull@localhost>
Wed, 12 Jun 2002 14:54:06 +0000 (14:54 +0000)
CVS patchset: 5482
CVS date: 2002/06/12 14:54:06

build.c

diff --git a/build.c b/build.c
index 9be05e0bee5121fc395e2656eb2fddd4d6393fe2..72f27da7052d5b6789da0b1d35365ee6d3661c7e 100644 (file)
--- a/build.c
+++ b/build.c
@@ -36,7 +36,7 @@ static int checkSpec(rpmts ts, Header h)
     rc = rpmtsCheck(ts);
 
     ps = rpmtsProblems(ts);
-    if (rc == 0 && ps) {
+    if (rc == 0 && rpmpsNumProblems(ps) > 0) {
        rpmMessage(RPMMESS_ERROR, _("Failed build dependencies:\n"));
        printDepProblems(stderr, ps);
        rc = 1;