]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix droporphaned when there is no installed repo
authorMichael Schroeder <mls@suse.de>
Wed, 25 Oct 2017 12:23:02 +0000 (14:23 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 25 Oct 2017 12:23:02 +0000 (14:23 +0200)
src/solver.c

index e90f8a4a2677e49adc7ab71786b02d99b047cc10..b9d91d288cbe129d2b49418557f274f04ae1bd53 100644 (file)
@@ -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)
                {