Author: mlandres Date: Wed Apr 30 13:19:37 2008 New Revision: 9903 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9903&view=rev Log: disabled cleanTargetCache. Needs to be fixed to use Target::cleanCache Modified: trunk/zypper/src/zypper-repos.cc Modified: trunk/zypper/src/zypper-repos.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-repos.cc?rev=9903&r1=9902&r2=9903&view=diff ============================================================================== --- trunk/zypper/src/zypper-repos.cc (original) +++ trunk/zypper/src/zypper-repos.cc Wed Apr 30 13:19:37 2008 @@ -259,8 +259,8 @@ { RepoManager manager(zypper.globalOpts().rm_options); list<RepoInfo> known = manager.knownRepositories(); - bool founded = false; - + bool founded = false; + unsigned int number = 1; // repo number for (list<RepoInfo>::const_iterator known_it = known.begin(); known_it != known.end(); ++known_it, number++) @@ -283,7 +283,7 @@ catch(const url::UrlException &){} } // END for all known repos - + return founded; } @@ -313,13 +313,13 @@ // repo found // is it a duplicate? compare by alias and URIs - //! \todo operator== in RepoInfo? + //! \todo operator== in RepoInfo? bool duplicate = false; for (list<RepoInfo>::const_iterator repo_it = repos.begin(); repo_it != repos.end(); ++repo_it) { bool equals = true; - + // alias if (repo_it->alias() != repo.alias()) { @@ -892,12 +892,12 @@ { string msg = boost::str( format(_("Skipping disabled repository '%s'")) % repo.name()); - + if (specified.empty()) zypper.out().info(msg, Out::HIGH); else zypper.out().error(msg); - + enabled_repo_count--; continue; } @@ -1049,7 +1049,7 @@ it != repos.end(); ++it) { RepoInfo repo(*it); - + if (!specified.empty()) { bool found = false; @@ -1060,7 +1060,7 @@ found = true; break; } - + if (!found) { DBG << repo.alias() << "(#" << ") not specified," @@ -1069,7 +1069,7 @@ continue; } } - + try { if( clean_metadata ) @@ -1115,7 +1115,8 @@ zypper.out().info(_("Cleaning installed packages cache."), Out::HIGH); try { - manager.cleanTargetCache(); +#warning NEED TO CALL Target::cleanCache() + // manager.cleanTargetCache(); } catch (...) { @@ -1303,7 +1304,7 @@ repo.setType(RepoType(type)); repo.setAlias(alias.empty() ? timestamp() : alias); - parsed_opts::const_iterator it = zypper.cOpts().find("name"); + parsed_opts::const_iterator it = zypper.cOpts().find("name"); if (it != zypper.cOpts().end()) repo.setName(it->second.front()); repo.addBaseUrl(url); @@ -1519,7 +1520,7 @@ changed_autoref = true; repo.setAutorefresh(autoref); } - + int prio = 0; parsed_opts::const_iterator tmp1; if ((tmp1 = zypper.cOpts().find("priority")) != zypper.cOpts().end()) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org