MIL << "Refreshing autorefresh services." << endl;
const list<ServiceInfo> & services = manager.knownServices();
+ bool called_refresh = false;
for_(s, services.begin(), services.end())
{
- bool called_refresh = false;
if (s->enabled() && s->autorefresh())
{
refresh_service(zypper, *s);
called_refresh = true;
}
-
- // reinitialize the repo manager to re-read the list of repos
- if (called_refresh)
- zypper.initRepoManager();
}
+ // reinitialize the repo manager to re-read the list of repos
+ if (called_refresh)
+ zypper.initRepoManager();
MIL << "Going to initialize repositories." << endl;