[yast-commit] r41057 - in /trunk/pkg-bindings: VERSION package/yast2-pkg-bindings.changes src/Source.cc yast2-pkg-bindings.spec.in
Author: lslezak Date: Mon Sep 24 17:45:49 2007 New Revision: 41057 URL: http://svn.opensuse.org/viewcvs/yast?rev=41057&view=rev Log: - set path to metadata files when registering a new repository, required to set the media verifier correctly (#293428) - 2.15.51 Modified: trunk/pkg-bindings/VERSION trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Source.cc trunk/pkg-bindings/yast2-pkg-bindings.spec.in Modified: trunk/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/VERSION?rev=41057&r1=41056&r2=41057&view=diff ============================================================================== --- trunk/pkg-bindings/VERSION (original) +++ trunk/pkg-bindings/VERSION Mon Sep 24 17:45:49 2007 @@ -1 +1 @@ -2.15.50 +2.15.51 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=41057&r1=41056&r2=41057&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Mon Sep 24 17:45:49 2007 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon Sep 24 17:43:01 CEST 2007 - lslezak@suse.cz + +- set path to metadata files when registering a new repository, + required to set the media verifier correctly (#293428) +- 2.15.51 + +------------------------------------------------------------------- Mon Sep 24 09:02:57 CEST 2007 - lslezak@suse.cz - search the correct package instance in license bindings Modified: trunk/pkg-bindings/src/Source.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source.cc?rev=41057&r1=41056&r2=41057&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source.cc (original) +++ trunk/pkg-bindings/src/Source.cc Mon Sep 24 17:45:49 2007 @@ -1587,6 +1587,10 @@ repo.setEnabled(true); repo.setAutorefresh(autorefresh); + // set metadata path (#293428) + zypp::Pathname metadatapath = repomanager.metadataPath(repo); + repo.setMetadataPath(metadatapath); + y2milestone("Adding source '%s' (%s)", repo.alias().c_str(), url.asString().c_str()); // note: exceptions should be caught by the calling code RefreshWithCallbacks(repo); @@ -1760,6 +1764,11 @@ repo.setPath(params->value(YCPString("prod_dir"))->asString()->value()); } + // set metadata path (#293428) + zypp::RepoManager repomanager = CreateRepoManager(); + zypp::Pathname metadatapath = repomanager.metadataPath(repo); + repo.setMetadataPath(metadatapath); + repos.push_back(new YRepo(repo)); // the new source is at the end of the list Modified: trunk/pkg-bindings/yast2-pkg-bindings.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/yast2-pkg-bindings.spec.in?rev=41057&r1=41056&r2=41057&view=diff ============================================================================== --- trunk/pkg-bindings/yast2-pkg-bindings.spec.in (original) +++ trunk/pkg-bindings/yast2-pkg-bindings.spec.in Mon Sep 24 17:45:49 2007 @@ -2,11 +2,11 @@ @HEADER@ BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen gcc-c++ libgcrypt-devel libxcrypt-devel libxslt perl-XML-Writer rpm-devel sgml-skel yast2-core-devel yast2-devtools boost boost-devel dbus-1-devel hal-devel -BuildRequires: libzypp-devel >= 3.21.0 -BuildRequires: libzypp >= 3.21.0 +BuildRequires: libzypp-devel >= 3.25.0 +BuildRequires: libzypp >= 3.25.0 -# changed requestMedia callback -Requires: libzypp >= 3.21.0 +# RepoManager::metadataPath() +Requires: libzypp >= 3.25.0 Summary: - -- 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