diff options
author | B S Srinidhi <srinidhi@novell.com> | 2013-11-15 18:55:56 +0530 |
---|---|---|
committer | B S Srinidhi <srinidhi@novell.com> | 2013-11-15 18:55:56 +0530 |
commit | f2d375391156835fc4b05978f51a481c96796233 (patch) | |
tree | 1bb00abda06bbaa6b02e6c8876c7af15714db230 | |
parent | 666dff8068b16586e8463c7aa99c27094490973c (diff) | |
download | libzypp-bindings-f2d375391156835fc4b05978f51a481c96796233.tar.gz libzypp-bindings-f2d375391156835fc4b05978f51a481c96796233.tar.bz2 libzypp-bindings-f2d375391156835fc4b05978f51a481c96796233.zip |
Provide example usage of using VendorSupport level
Also fix some indentation problems. Switched to using whitespaces
instead of tabs.
-rwxr-xr-x | examples/ruby/parse1.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/ruby/parse1.rb b/examples/ruby/parse1.rb index 74ffcc2..718fa37 100755 --- a/examples/ruby/parse1.rb +++ b/examples/ruby/parse1.rb @@ -46,21 +46,22 @@ pool.each do | p | puts changes.class puts changes.size changes.each do | c | - puts c.date - puts c.author - puts c.text + puts c.date + puts c.author + puts c.text end end puts " Summary: #{r.summary}" puts " DownloadSize: #{r.downloadSize}" puts " Vendor: #{r.vendor}" puts " Buildtime: #{r.buildtime}" + puts " Support Level: #{asUserString(asKindPackage(p).vendorSupport)}" if isKindPackage(p) d = r.dep(Dep.PROVIDES) # puts d.class d.each do | x | - # puts y.class - puts " Provides: #{x.to_s}" + # puts y.class + puts " Provides: #{x.to_s}" end puts |