Add heuristic to process upgrade chains.
Add heuristic to process upgrade chains.

skoef/pkg,en90/pkg,junovitch/pkg,skoef/pkg,khorben/pkg,khorben/pkg,Open343/pkg,Open343/pkg,junovitch/pkg,en90/pkg,khorben/pkg