[yast-commit] r39840 - in /trunk/pkg-bindings: package/yast2-pkg-bindings.changes src/Source.cc
Author: lslezak Date: Tue Jul 31 15:51:00 2007 New Revision: 39840 URL: http://svn.opensuse.org/viewcvs/yast?rev=39840&view=rev Log: - Pkg::SourceChangeUrl() adapted to the latest libzypp - implemented Pkg::SourceMoveDownloadArea() Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Source.cc Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bindings.changes?rev=39840&r1=39839&r2=39840&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Tue Jul 31 15:51:00 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jul 31 15:49:30 CEST 2007 - lslezak@suse.cz + +- Pkg::SourceChangeUrl() adapted to the latest libzypp +- implemented Pkg::SourceMoveDownloadArea() + +------------------------------------------------------------------- Tue Jul 31 10:35:56 CEST 2007 - lslezak@suse.cz - Pkg::SourceGetCurrent() - return correct IDs (fixed nasty off Modified: trunk/pkg-bindings/src/Source.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source.cc?rev=39840&r1=39839&r2=39840&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source.cc (original) +++ trunk/pkg-bindings/src/Source.cc Tue Jul 31 15:51:00 2007 @@ -1019,10 +1019,7 @@ if (repo->repoInfo().baseUrlsSize() > 1) { // store current urls - std::setzypp::Url baseUrls; - for (std::setzypp::Url::const_iterator i = repo->repoInfo().baseUrlsBegin(); - i != repo->repoInfo().baseUrlsEnd(); ++i) - baseUrls.insert(*i); + std::setzypp::Url baseUrls (repo->repoInfo().baseUrlsBegin(), repo->repoInfo().baseUrlsEnd()); // reset url list and store the new one there repo->repoInfo().setBaseUrl(zypp::Url(u->value())); @@ -2083,23 +2080,21 @@ YCPValue PkgModuleFunctions::SourceMoveDownloadArea (const YCPString & path) { -#warning SourceMoveDownloadArea is NOT implemented -// TODO FIXME - /* try { - y2milestone( "Moving download area of all sources to %s", path->value().c_str()) ; - zypp::SourceManager::sourceManager()->reattachSources (path->value()); + y2milestone("Moving download area of all sources to %s", path->value().c_str()); + zypp::media::MediaManager manager; + manager.setAttachPrefix(path->value()); } catch (zypp::Exception & excpt) { _last_error.setLastError(excpt.asUserString()); - y2error("Pkg::SourceMoveDownloadArea has failed: %s", excpt.msg().c_str() ); + y2error("Pkg::SourceMoveDownloadArea has failed: %s", excpt.msg().c_str()); return YCPBoolean(false); } y2milestone( "Download areas moved"); -*/ + return YCPBoolean(true); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org