}
-
/*
- * printdecisions
+ * create obsoletesmap from solver decisions
+ * required for decision handling
*/
-
-void
-printdecisions(Solver *solv)
+Id *
+create_obsoletesmap(Solver *solv)
{
Pool *pool = solv->pool;
Repo *installed = solv->installed;
- Id p, *obsoletesmap;
+ Id p, *obsoletesmap = NULL;
int i;
Solvable *s;
- POOL_DEBUG(SAT_DEBUG_SCHUBI, "----- Decisions -----\n");
-
obsoletesmap = (Id *)xcalloc(pool->nsolvables, sizeof(Id));
if (installed)
{
}
}
}
+ return obsoletesmap;
+}
+
+/*
+ * printdecisions
+ */
+
+
+void
+printdecisions(Solver *solv)
+{
+ Pool *pool = solv->pool;
+ Repo *installed = solv->installed;
+ Id p, *obsoletesmap = create_obsoletesmap( solv );
+ int i;
+ Solvable *s;
+
+ POOL_DEBUG(SAT_DEBUG_SCHUBI, "----- Decisions -----\n");
/* print solvables to be erased */
extern Id solver_findproblemrule(Solver *solv, Id problem);
extern SolverProbleminfo solver_problemruleinfo(Solver *solv, Queue *job, Id rid, Id *depp, Id *sourcep, Id *targetp);
+Id *create_obsoletesmap(Solver *solv);
+
/* debug functions, do not use */
void printdecisions(Solver *solv);
void printsolutions(Solver *solv, Queue *job);