summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.c b/build.c
index 9be05e0be..72f27da70 100644
--- 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;