diff options
author | Michael Andres <ma@suse.de> | 2013-11-15 06:32:32 -0800 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2013-11-15 06:32:32 -0800 |
commit | 4462cb17cfb4ce49e421c3da581148e5f6079c35 (patch) | |
tree | 1bb00abda06bbaa6b02e6c8876c7af15714db230 | |
parent | fba20002179b48ce30caef270373a83c8bad44a0 (diff) | |
parent | f2d375391156835fc4b05978f51a481c96796233 (diff) | |
download | libzypp-bindings-4462cb17cfb4ce49e421c3da581148e5f6079c35.tar.gz libzypp-bindings-4462cb17cfb4ce49e421c3da581148e5f6079c35.tar.bz2 libzypp-bindings-4462cb17cfb4ce49e421c3da581148e5f6079c35.zip |
Merge pull request #6 from srinidhibs/add-vendorsupportoptions
Provide example usage of using VendorSupport level
-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 |