- PoolItemList installed;
- for (ResPool::const_iterator it = pool_r.begin();
- it != pool_r.end(); it++)
- {
- if (it->status().isToBeInstalled())
- {
- to_install.push_back(*it);
- }
- else if (it->status().isToBeUninstalled()
- && !it->status().isToBeUninstalledDueToObsolete()) // leave out obsoletes
- {
- to_uninstall.push_back(*it);
- }
- else if (it->status().staysInstalled())
- {
- installed.push_back(*it);
- }
- }
-
- if (to_uninstall.size() > 0 ) {
+ PoolItemList to_srcinstall;
+ getResolvablesToInsDel( pool_r, to_uninstall, to_install, to_srcinstall );