fix test so that we no longer flatten when there's just one job
authorMichael Schroeder <mls@suse.de>
Wed, 27 Feb 2013 14:08:49 +0000 (15:08 +0100)
committerMichael Schroeder <mls@suse.de>
Wed, 27 Feb 2013 14:08:49 +0000 (15:08 +0100)
src/selection.c

index ffd2d0a..c586a2c 100644 (file)
@@ -121,7 +121,7 @@ selection_flatten(Pool *pool, Queue *selection)
 {
   Queue q;
   int i;
-  if (selection->count <= 1)
+  if (selection->count <= 2)
     return;
   for (i = 0; i < selection->count; i += 2)
     if ((selection->elements[i] & SOLVER_SELECTMASK) == SOLVER_SOLVABLE_ALL)