Author: kkaempf Date: Fri Dec 5 12:21:39 2008 New Revision: 11887 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11887&view=rev Log: test per-repo search Modified: trunk/sat-solver/bindings/ruby/tests/search.rb Modified: trunk/sat-solver/bindings/ruby/tests/search.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/search.rb?rev=11887&r1=11886&r2=11887&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/search.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/search.rb Fri Dec 5 12:21:39 2008 @@ -51,7 +51,7 @@ repo.name = "openSUSE 11.0 Beta3 BiArch" puts "Repo #{repo.name} loaded with #{repo.size} solvables" - pool.search("yast2", Satsolver::SEARCH_STRING) do |d| + repo.search("yast2", Satsolver::SEARCH_STRING) do |d| puts "#{d.solvable} matches 'yast2' in #{d.key.name}: #{d.value}" end end @@ -63,7 +63,7 @@ solvpath = Pathname( File.dirname( __FILE__ ) ) + Pathname( "../../testdata" ) + "os11-biarch.solv" repo = pool.add_solv( solvpath ) repo.name = "test" - pool.search("/usr/bin/python", Satsolver::SEARCH_STRING|Satsolver::SEARCH_FILES) do |d| + repo.search("/usr/bin/python", Satsolver::SEARCH_STRING|Satsolver::SEARCH_FILES) do |d| puts "#{d.solvable} matches '/usr/bin/python' in #{d.key.name}: #{d.value}" end end -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org