Author: lslezak Date: Mon Nov 3 15:12:42 2008 New Revision: 52834 URL: http://svn.opensuse.org/viewcvs/yast?rev=52834&view=rev Log: - use AutoIndexes zypp::Fetcher feature, fixed signed file downloading (bnc#409927) Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Source_Download.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=52834&r1=52833&r2=52834&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Mon Nov 3 15:12:42 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Nov 3 14:52:43 CET 2008 - lslezak@suse.cz + +- use AutoIndexes zypp::Fetcher feature, fixed signed file + downloading (bnc#409927) + +------------------------------------------------------------------- Fri Oct 31 16:29:10 CET 2008 - lslezak@suse.cz - Pkg::ResolvableProperties() - return correct status for selected Modified: trunk/pkg-bindings/src/Source_Download.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source_Download.cc?rev=52834&r1=52833&r2=52834&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source_Download.cc (original) +++ trunk/pkg-bindings/src/Source_Download.cc Mon Nov 3 15:12:42 2008 @@ -81,7 +81,8 @@ // keep a reference to the tmpdir so the directory is not deleted at the and of the block tmp_dirs.push_back(tmpdir); - path = tmpdir.path() / f->value(); + path = tmpdir.path(); + fch.setOptions(zypp::Fetcher::AutoAddIndexes); fch.enqueueDigested(mloc); fch.start(path, *repo->mediaAccess()); // uses MediaAccess to retrieve fch.reset(); @@ -283,7 +284,8 @@ // keep the reference to the tmpdir so the directory is not deleted at the and of the block tmp_dirs.push_back(tmpdir); path = tmpdir.path(); - f.enqueueDir(mloc, recursive->value()); + f.setOptions(zypp::Fetcher::AutoAddIndexes); + f.enqueueDigestedDir(mloc, recursive->value()); f.start(path, *repo->mediaAccess()); // uses MediaAccess to retrieve f.reset(); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org