Add code to check if package is orphaned
libqapt already provides a state QApt::Package::Orphaned, but does not calculate it. This patch fixes this problem.
Some package which could be called orphaned will not be maked as orphaned:
- kile-l10n is in requiredByList of kile
- kile is in requiredByList of kile-l10n
- kile-l10n can be removed without breaking any dependency
I would personally mark kile-l10n as orphaned too. However, this problem is also exists in deborphan
Edited by Andrey Yashkin