]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Deal with update/feature jobs in alternative printing
authorMichael Schroeder <mls@suse.de>
Thu, 18 Apr 2019 13:43:59 +0000 (15:43 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 18 Apr 2019 13:43:59 +0000 (15:43 +0200)
ext/testcase.c

index c01249ccf960781ea6d0d0614c3ba4220eb54e86..242d30ab83499912ac8990fc2369c33737d953ed 100644 (file)
@@ -1434,6 +1434,13 @@ testcase_solverresult(Solver *solv, int resultflags)
                      s = pool_tmpappend(pool, s, " requires ", testcase_dep2str(pool, rq.elements[i + 3]));
                      strqueue_push(&sq, s);
                    }
+                 else if (rtype == SOLVER_RULE_UPDATE || rtype == SOLVER_RULE_FEATURE)
+                   {
+                     const char *js = testcase_solvid2str(pool, rq.elements[i + 1]);
+                     char *s = pool_tmpjoin(pool, altprefix, num, " update ");
+                     s = pool_tmpappend(pool, s, js, 0);
+                     strqueue_push(&sq, s);
+                   }
                }
            }
          for (i = 0; i < q.count; i++)