[yast-commit] r39284 - /branches/REFACTORING-10_3/pkg-bindings/src/Source.cc
Author: jkupec Date: Tue Jul 10 16:04:32 2007 New Revision: 39284 URL: http://svn.opensuse.org/viewcvs/yast?rev=39284&view=rev Log: - ReleaseAllSources() has an empty implementation as it is (hopefuly) not needed anymore. - SourceChangeUrl() cleaned-up Modified: branches/REFACTORING-10_3/pkg-bindings/src/Source.cc Modified: branches/REFACTORING-10_3/pkg-bindings/src/Source.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/REFACTORING-10_3/pkg-bindings/src/Source.cc?rev=39284&r1=39283&r2=39284&view=diff ============================================================================== --- branches/REFACTORING-10_3/pkg-bindings/src/Source.cc (original) +++ branches/REFACTORING-10_3/pkg-bindings/src/Source.cc Tue Jul 10 16:04:32 2007 @@ -438,21 +438,9 @@ YCPValue PkgModuleFunctions::SourceReleaseAll () { -#warning FIXME: SourceReleaseAll is empty! -/* try - { - y2milestone( "Relesing all sources") ; - zypp::SourceManager::sourceManager()->releaseAllSources (); - } - catch (zypp::Exception & excpt) - { - _last_error.setLastError(excpt.asUserString()); - y2error("Pkg::SourceReleaseAll has failed: %s", excpt.msg().c_str() ); - return YCPBoolean(false); - } - - y2milestone( "All sources released"); -*/ + y2milestone("Relesing all sources. WARNING: this method is deprecated and has empty" + " implementation! If that causes problems, tell libzypp people." + " If everything works fine without it, just delete it from your code."); return YCPBoolean(true); } @@ -939,25 +927,6 @@ return YCPBoolean(false); } - - try { - zypp::RepoManager repomanager; - repomanager.modifyRepository(src.alias(), src); -#warning FIXME is MediaManager::open() needed here? -/* zypp::Pathname pth = src.path(); - zypp::Url url = zypp::Url(u->value ()); - zypp::media::MediaManager media_mgr; - zypp::media::MediaAccessId media_id = media_mgr.open(url); - src.changeMedia(media_id, pth); - */ - } - catch (const zypp::Exception & excpt) - { - _last_error.setLastError(excpt.asUserString()); - y2error ("Cannot change media for source %s (%lld): %s", - src.alias().c_str(), id->asInteger()->value(), excpt.msg().c_str()); - return YCPBoolean(false); - } return YCPBoolean(true); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jkupec@svn.opensuse.org