Author: lslezak Date: Fri May 30 09:36:35 2008 New Revision: 47956 URL: http://svn.opensuse.org/viewcvs/yast?rev=47956&view=rev Log: - set the prefix for package cache (do not download packages to the current directory) (bnc#394728) - 2.16.39 Modified: trunk/pkg-bindings/VERSION trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/PkgFunctions.cc trunk/pkg-bindings/src/Source_Create.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=47956&r1=47955&r2=47956&view=diff ============================================================================== --- trunk/pkg-bindings/VERSION (original) +++ trunk/pkg-bindings/VERSION Fri May 30 09:36:35 2008 @@ -1 +1 @@ -2.16.38 +2.16.39 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=47956&r1=47955&r2=47956&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Fri May 30 09:36:35 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu May 29 13:57:53 CEST 2008 - lslezak@suse.cz + +- set the prefix for package cache (do not download packages to + the current directory) (bnc#394728) +- 2.16.39 + +------------------------------------------------------------------- Fri May 23 16:25:48 CEST 2008 - dmacvicar@suse.de - fix patch pre-selection Modified: trunk/pkg-bindings/src/PkgFunctions.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/PkgFunctions.cc?rev=47956&r1=47955&r2=47956&view=diff ============================================================================== --- trunk/pkg-bindings/src/PkgFunctions.cc (original) +++ trunk/pkg-bindings/src/PkgFunctions.cc Fri May 30 09:36:35 2008 @@ -223,8 +223,7 @@ zypp::RepoManager PkgFunctions::CreateRepoManager() { // set path option, use root dir as a prefix for the default directory - zypp::RepoManagerOptions repo_options; - repo_options.knownReposPath = zypp::Pathname(_target_root) + repo_options.knownReposPath; + zypp::RepoManagerOptions repo_options(_target_root); y2milestone("Path to repository files: %s", repo_options.knownReposPath.asString().c_str()); Modified: trunk/pkg-bindings/src/Source_Create.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source_Create.cc?rev=47956&r1=47955&r2=47956&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source_Create.cc (original) +++ trunk/pkg-bindings/src/Source_Create.cc Fri May 30 09:36:35 2008 @@ -326,6 +326,8 @@ // set metadata path (#293428) zypp::Pathname metadatapath = repomanager.metadataPath(repo); repo.setMetadataPath(metadatapath); + // set packages path + repo.setPackagesPath(repomanager.packagesPath(repo)); y2milestone("Adding source '%s' (%s, dir: %s)", repo.alias().c_str(), url.asString().c_str(), path_r.asString().c_str()); // note: exceptions should be caught by the calling code @@ -518,6 +520,8 @@ zypp::Pathname metadatapath = repomanager.metadataPath(repo); repo.setMetadataPath(metadatapath); + repo.setPackagesPath(repomanager.packagesPath(repo)); + 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=47956&r1=47955&r2=47956&view=diff ============================================================================== --- trunk/pkg-bindings/yast2-pkg-bindings.spec.in (original) +++ trunk/pkg-bindings/yast2-pkg-bindings.spec.in Fri May 30 09:36:35 2008 @@ -2,10 +2,10 @@ @HEADER@ BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen gcc-c++ libgcrypt-devel libxcrypt-devel libxslt perl-XML-Writer sgml-skel yast2-core-devel yast2-devtools -BuildRequires: libzypp-devel >= 4.4.0 +BuildRequires: libzypp-devel >= 4.25.1 # created and expires dates in zypp::PublicKey -Requires: libzypp >= 4.4.0 +Requires: libzypp >= 4.25.1 Summary: - -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org