if ( (scheme == "cd" || scheme == "dvd") )
{
- MIL << "Skipping CD/DVD source: url:[" << (it->baseUrlsBegin())->asString() << "] alias:[" << it->alias() << "] auto_refresh:[ " << it->autorefresh() << "]" << endl;
+ MIL << "Skipping CD/DVD repository: url:[" << (it->baseUrlsBegin())->asString() << "] alias:[" << it->alias() << "] auto_refresh:[ " << it->autorefresh() << "]" << endl;
continue;
}
if ( ! it->enabled() )
{
- MIL << "Skipping disabled source: url:[" << url.asString() << "] alias:[" << it->alias() << "] auto_refresh:[ " << it->autorefresh() << "]" << endl;
+ MIL << "Skipping disabled repository: url:[" << url.asString() << "] alias:[" << it->alias() << "] auto_refresh:[ " << it->autorefresh() << "]" << endl;
continue;
}
// Note: Url(it->url).asString() to hide password in logs
- MIL << "Creating source: url:[" << url.asString() << "] alias:[" << it->alias() << "] auto_refresh:[ " << it->autorefresh() << "]" << endl;
+ MIL << "Creating repository: url:[" << url.asString() << "] alias:[" << it->alias() << "] auto_refresh:[ " << it->autorefresh() << "]" << endl;
try
{
token_stream << "[" << it->alias() << "| " << *(it->baseUrlsBegin()) << "]"; // src.timestamp() << "]";
- MIL << "Source: " << it->alias() << std::endl; //" from " << src.timestamp() << std::endl;
+ MIL << "repository: " << it->alias() << std::endl; //" from " << src.timestamp() << std::endl;
gData.repos.push_back(*it);
}
{
// TranslatorExplanation %s = detailed low level (unstranslated) error message
string error = excpt_r.msg();
- gData.errors.push_back(str::form(_("Couldn't restore source.\nDetail: %s"), error.c_str()));
+ gData.errors.push_back(str::form(_("Couldn't restore repository.\nDetail: %s"), error.c_str()));
}
}
if ( gData.repos.size() == 0 )
{
- gData.errors.push_back( str::form( _( "There are no update sources defined. Please add one or more update sources in order to be notified of updates.") ) );
+ gData.errors.push_back( str::form( _( "There are no update repositories defined. Please add one or more update repositories in order to be notified of updates.") ) );
}
God->addResolvables( God->target()->resolvables(), true);
if (excpt_r.msg().find("fails integrity check") != string::npos) {
cerr << endl
<< _("Package integrity check failed. This may be a problem"
- " with installation source or media. Try one of the following:\n"
+ " with repository or media. Try one of the following:\n"
"\n"
"- just retry previous command\n"
- "- refresh installation sources using 'zypper refresh'\n"
+ "- refresh repositories using 'zypper refresh'\n"
"- use another installation media (if e.g. damaged)\n"
- "- use another installation source") << endl;
+ "- use another repository") << endl;
return ZYPPER_EXIT_ERR_ZYPP;
}
else
}
/**
- * Initializes installation sources, creates search regex, caches installed
+ * Initializes repositories, creates search regex, caches installed
* packages from RPM database, and populates ResPool with items from
- * installation sources.
+ * repositories.
*/
ZyppSearch::ZyppSearch (
ZYpp::Ptr & zypp,
cond_init_target(); // calls ZYpp::initializeTarget("/");
init_repos();
- // no sources warning
+ // no repos warning
if (gData.repos.empty()) {
cerr << _("No repositories configured. Please, add at least one"
" repository using 'zypper addrepo' command before using search.")
load_repo_resolvables(); // populates ResPool with resolvables from repos
// cache identification strings of source resolvables (used to check for
- // duplicates of target resolvables in sources - DuplicateFilter)
+ // duplicates of target resolvables in repos - DuplicateFilter)
invokeOnEachSearched(not_c(ByInstalled()), functorRef<bool,const zypp::PoolItem &>(_idcache));
}
};
/**
- * Filters target poolitems which have their counterpart among source
+ * Filters target poolitems which have their counterpart among repository
* resolvables.
*/
struct DuplicateFilter {
if (do_refresh)
{
//! \todo progress reporting
- cout_n << "Refreshing " << repo.alias() << endl;
+ cout_v << format(
+ _("Checking whether to refresh metadata for %s.")) % repo.alias()
+ << endl;
manager.refreshMetadata(repo);
}
}
catch ( const Exception &e )
{
ZYPP_CAUGHT(e);
- cerr << _("Error reading system sources:") << endl
+ cerr << _("Error reading repositories:") << endl
<< e.asUserString() << endl;
exit(ZYPPER_EXIT_ERR_ZYPP);
}
{
RepoInfo repo(*it);
- // skip disabled sources
+ // skip disabled repos
if (!repo.enabled())
{
cout_v << format(_("Skipping disabled repository '%s'")) % repo.alias()
*/
void warn_if_zmd();
-
-//! calls init_system_sources if not disabled by user (or non-root)
-//void cond_init_system_sources(); // OLD
-void init_system_sources(); // OLD
-
/**
* Delte repository specified by \a alias.
*/
*/
void modify_repo(const std::string & alias, const parsed_opts & copts);
-//void include_source_by_url( const zypp::Url &url ); // OLD
-
#endif
// Local Variables:
// mode: c++
init_repos();
- //! \todo support temporary additional sources
+ //! \todo support temporary additional repos
/*
for ( std::list<Url>::const_iterator it = gSettings.additional_sources.begin(); it != gSettings.additional_sources.end(); ++it )
{
if ( gData.repos.empty() )
{
- cerr << _("Warning: No sources. Operating only with the installed resolvables. Nothing can be installed.") << endl;
+ cerr << _("Warning: No repositories defined."
+ " Operating only with the installed resolvables."
+ " Nothing can be installed.") << endl;
}
cond_init_target ();
cond_load_resolvables();
-
+
for ( vector<string>::const_iterator it = arguments.begin(); it != arguments.end(); ++it ) {
if (command == ZypperCommand::INSTALL) {
mark_for_install(kind, *it);