// check whether libzypp indicates a refresh is needed, and if so,
// print a message
cout_v << format(
- _("Checking whether to refresh metadata for %s.")) % repo.alias()
+ _("Checking whether to refresh metadata for %s")) % repo.alias()
<< endl;
for(RepoInfo::urls_const_iterator it = repo.baseUrlsBegin();
it != repo.baseUrlsEnd(); ++it)
try
{
if (manager.checkIfToRefreshMetadata(repo, *it))
- cout_n << format(_("Refreshing '%s'")) % repo.alias() << endl;
+ {
+ cout_n << format(_("Refreshing '%s'")) % repo.alias();
+ if (command == ZypperCommand::REFRESH && copts.count("force"))
+ cout_n << " " << _("(forced)");
+ cout_n << endl;
+ }
+ else if (command == ZypperCommand::REFRESH)
+ {
+ cout_n << format(_("Repository '%s' is up to date.")) % repo.alias() << endl;
+ }
+ break; // don't check all the urls, just the first succussfull.
}
catch (const Exception & e)
{
continue;
}
- cout_n << format(_("Refreshing '%s'")) % it->alias()
- << (copts.count("force") ? " " + string(_("(forced)")) : "")
- << endl;
-
// do the refresh
bool error = false;
if (!copts.count("build-only"))
copts.count("force") || copts.count("force-download");
if (force_download)
- cout_v << _("Forcing raw metadata refresh");
+ cout << _("Forcing raw metadata refresh") << endl;
MIL << "calling refreshMetadata" << (force_download ? ", forced" : "")
<< endl;
bool force_build =
copts.count("force") || copts.count("force-build");
- cout_v << _("Creating repository cache");
if (force_build)
- cout_v << " " << _("(forced)");
- cout_v << endl;
+ cout << _("Forcing building of repository cache") << endl;
MIL << "calling buildCache" << (force_build ? ", forced" : "") << endl;