From: Michael Schroeder Date: Wed, 25 Oct 2017 12:23:02 +0000 (+0200) Subject: Fix droporphaned when there is no installed repo X-Git-Tag: 0.6.31~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40d3d03d28c13a34547db38e40b74bdd4195848e;p=thirdparty%2Flibsolv.git Fix droporphaned when there is no installed repo --- diff --git a/src/solver.c b/src/solver.c index e90f8a4a..b9d91d28 100644 --- a/src/solver.c +++ b/src/solver.c @@ -3588,7 +3588,7 @@ solver_solve(Solver *solv, Queue *job) } break; case SOLVER_DROP_ORPHANED: - if (select == SOLVER_SOLVABLE_ALL || (select == SOLVER_SOLVABLE_REPO && what == installed->repoid)) + if (select == SOLVER_SOLVABLE_ALL || (select == SOLVER_SOLVABLE_REPO && installed && what == installed->repoid)) solv->droporphanedmap_all = 1; FOR_JOB_SELECT(p, pp, select, what) {