// objects from previous lists that
// are not supported
KindToResObjectSet tounsupported;
-
+
// iterate the to_be_installed to find installs/upgrades/downgrades + size info
ByteCount download_size, new_installed_size;
if ( pkg )
{
// FIXME refactor with libzypp Package::vendorSupportAvailable()
-
- if ( pkg->maybeUnsupported() )
+
+ if ( pkg->maybeUnsupported() )
tounsupported[res->kind()].insert(res);
}
RepoManager manager(zypper.globalOpts().rm_options );
bool refresh_needed = false;
- for(RepoInfo::urls_const_iterator it = e.info().baseUrlsBegin();
- it != e.info().baseUrlsEnd(); ++it)
- {
- RepoManager::RefreshCheckStatus stat = manager.
- checkIfToRefreshMetadata(e.info(), *it,
- RepoManager::RefreshForced );
- if ( stat == RepoManager::REFRESH_NEEDED )
+ try
+ {
+ for(RepoInfo::urls_const_iterator it = e.info().baseUrlsBegin();
+ it != e.info().baseUrlsEnd(); ++it)
{
- refresh_needed = true;
- break;
+ RepoManager::RefreshCheckStatus stat = manager.
+ checkIfToRefreshMetadata(e.info(), *it,
+ RepoManager::RefreshForced );
+ if ( stat == RepoManager::REFRESH_NEEDED )
+ {
+ refresh_needed = true;
+ break;
+ }
}
- }
+ }
+ catch (const Exception &)
+ { DBG << "check if to refresh exception caught, ignoring" << endl; }
std::string hint = _("Please see the above error message for a hint.");
if (refresh_needed)