Mailinglist Archive: zypp-commit (301 mails)

< Previous Next >
[zypp-commit] r7669 - in /trunk/sat-solver/examples/ruby: basic.rb yps.rb
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Fri, 26 Oct 2007 20:25:13 -0000
  • Message-id: <20071026202513.777C8173AC@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Fri Oct 26 22:25:13 2007
New Revision: 7669

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7669&view=rev
Log:
Fix the ruby example, and remove a obsolete one

Removed:
trunk/sat-solver/examples/ruby/yps.rb
Modified:
trunk/sat-solver/examples/ruby/basic.rb

Modified: trunk/sat-solver/examples/ruby/basic.rb
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/examples/ruby/basic.rb?rev=7669&r1=7668&r2=7669&view=diff
==============================================================================
--- trunk/sat-solver/examples/ruby/basic.rb (original)
+++ trunk/sat-solver/examples/ruby/basic.rb Fri Oct 26 22:25:13 2007
@@ -5,15 +5,15 @@
pool = Pool.new
#puts pool.methods.sort

-#s = pool.add_empty_source
+#s = pool.add_empty_repo

f =
File.open('../../testsuite/data.libzypp/basic-exercises/exercise-20-packages.solv',
'r')
-s = pool.add_source_solv(f, 'foo')
+s = pool.add_repo_solv(f, 'foo')

f =
File.open('../../testsuite/data.libzypp/basic-exercises/exercise-20-system.solv',
'r')
-installed = pool.add_source_solv(f, 'system')
+installed = pool.add_repo_solv(f, 'system')

-pool.each_source do |repo|
+pool.each_repo do |repo|
puts repo.name
end

@@ -34,7 +34,7 @@
pool.prepare
pool.promoteepoch = true

-# no packages installed so use add_empty_source
+# no packages installed so use add_empty_repo
solv = Solver.new(pool, installed)

solv.fixsystem = 0

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages