Take non-gi errors into account too (SuseBug:527191)
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 15 Sep 2009 08:05:27 +0000 (11:05 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 15 Sep 2009 08:05:27 +0000 (11:05 +0300)
- patch from OpenSUSE / Michael Schroeder

lib/query.c

index d5fd1fc..3337f08 100644 (file)
@@ -282,7 +282,7 @@ static int rpmgiShowMatches(QVA_t qva, rpmts ts)
        if (qva->qva_source == RPMQV_DBOFFSET)
            break;
     }
-    return rpmgiNumErrors(gi);
+    return ec + rpmgiNumErrors(gi);
 }
 
 int rpmcliShowMatches(QVA_t qva, rpmts ts)