- make debug output better
authorMichael Schroeder <mls@suse.de>
Sat, 20 Jun 2009 12:39:52 +0000 (14:39 +0200)
committerMichael Schroeder <mls@suse.de>
Sat, 20 Jun 2009 12:39:52 +0000 (14:39 +0200)
tools/findfileconflicts.c
tools/pool_fileconflicts.c

index 4bd41d6..a7286ab 100644 (file)
@@ -61,9 +61,14 @@ int main()
       pool_setdebuglevel(pool, 0);
       Solver *solv = solver_create(pool);
       solv->fixsystem = 1;
+#if 0
+      solv->allowuninstall = 1;
+#endif
       solver_solve(solv, &job);
       if (solv->problems.count)
         solver_printallsolutions(solv);
+      else
+        solver_printtransaction(solv);
       queue_free(&job);
       solver_free(solv);
     }
index 8e48d32..e14d5c4 100644 (file)
@@ -261,6 +261,7 @@ pool_findfileconflicts(Pool *pool, Queue *pkgs, int cutoff, Queue *conflicts, vo
     return 0;
 
   now = start = sat_timems(0);
+  POOL_DEBUG(SAT_DEBUG_STATS, "searching for file conflicts\n");
   POOL_DEBUG(SAT_DEBUG_STATS, "packages: %d, cutoff %d\n", pkgs->count, cutoff);
 
   memset(&cbdata, 0, sizeof(cbdata));
@@ -396,7 +397,8 @@ pool_findfileconflicts(Pool *pool, Queue *pkgs, int cutoff, Queue *conflicts, vo
   if (conflicts->count > 5)
     sat_sort(conflicts->elements, conflicts->count / 5, 5 * sizeof(Id), conflicts_cmp, pool);
   (*handle_cb)(pool, 0, handle_cbdata);
-  POOL_DEBUG(SAT_DEBUG_STATS, "conflict detection took %d ms\n", sat_timems(start));
+  POOL_DEBUG(SAT_DEBUG_STATS, "found %d file conflicts\n", conflicts->count / 5);
+  POOL_DEBUG(SAT_DEBUG_STATS, "file conflict detection took %d ms\n", sat_timems(start));
   return conflicts->count;
 }