1 diff --git a/install3/requirements.c b/install3/requirements.c
2 index ea9df61..fee15db 100644
3 --- a/install3/requirements.c
4 +++ b/install3/requirements.c
5 @@ -386,7 +392,7 @@ static int process_orphan_req(int indent, struct i3ctx *ictx,
8 /* try upgrade orphan */
9 - if (ts->getop(ts, POLDEK_OP_GREEDY)) {
10 + if (ts->getop(ts, POLDEK_OP_GREEDY) && (tomark == NULL)) {
11 if (try_to_upgrade_orphan(indent, ictx, pkg, req, tomark))