diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/python/list_target_resolvables.py | 5 | ||||
-rw-r--r-- | examples/ruby/exception.rb | 1 | ||||
-rw-r--r-- | examples/ruby/keyring.rb | 5 | ||||
-rw-r--r-- | examples/ruby/list_target_resolvables.rb | 3 | ||||
-rw-r--r-- | examples/ruby/mediasetaccess_example.rb | 1 | ||||
-rw-r--r-- | examples/ruby/parse1.rb | 3 | ||||
-rw-r--r-- | examples/ruby/parse2.rb | 3 | ||||
-rw-r--r-- | examples/ruby/play_with_pool_and_target.rb | 1 | ||||
-rw-r--r-- | examples/ruby/play_with_repos.rb | 1 | ||||
-rw-r--r-- | examples/ruby/test.rb | 1 | ||||
-rw-r--r-- | examples/ruby/test2.rb | 1 |
11 files changed, 19 insertions, 6 deletions
diff --git a/examples/python/list_target_resolvables.py b/examples/python/list_target_resolvables.py index f21bd57..ec62159 100644 --- a/examples/python/list_target_resolvables.py +++ b/examples/python/list_target_resolvables.py @@ -1,10 +1,11 @@ +#!/usr/bin/python -from zypp import ZYppFactory, Dep +from zypp import ZYppFactory, Pathname, Dep z = ZYppFactory.instance().getZYpp() print z -z.initializeTarget("/") +z.initializeTarget(Pathname("/")) r = z.target().resolvables() print r diff --git a/examples/ruby/exception.rb b/examples/ruby/exception.rb index d797698..95028fe 100644 --- a/examples/ruby/exception.rb +++ b/examples/ruby/exception.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp diff --git a/examples/ruby/keyring.rb b/examples/ruby/keyring.rb index 79426ad..5b1e117 100644 --- a/examples/ruby/keyring.rb +++ b/examples/ruby/keyring.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp @@ -5,9 +6,11 @@ include Zypp keyring = ZYppFactory::instance.get_zypp.key_ring -# FIXME path = Pathname.new("/suse/aschnell/tmp/repodata/repomd.xml.key") +puts path + publickey = PublicKey.new(path) +puts publickey id = publickey.id() diff --git a/examples/ruby/list_target_resolvables.rb b/examples/ruby/list_target_resolvables.rb index f1d0d9b..12112b5 100644 --- a/examples/ruby/list_target_resolvables.rb +++ b/examples/ruby/list_target_resolvables.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp @@ -5,7 +6,7 @@ include Zypp z = ZYppFactory::instance.get_zypp # puts z.class -t = z.initialize_target("/") +t = z.initialize_target(Pathname.new("/")) # puts t.class r = z.target.resolvables diff --git a/examples/ruby/mediasetaccess_example.rb b/examples/ruby/mediasetaccess_example.rb index 012eddf..4a8cb91 100644 --- a/examples/ruby/mediasetaccess_example.rb +++ b/examples/ruby/mediasetaccess_example.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp diff --git a/examples/ruby/parse1.rb b/examples/ruby/parse1.rb index 7d60e55..1a82600 100644 --- a/examples/ruby/parse1.rb +++ b/examples/ruby/parse1.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp @@ -21,7 +22,7 @@ repo_info.set_enabled(true) repo_info.set_autorefresh(false) # repo_info.add_base_url("ftp://dist.suse.de/install/stable-x86/") # repo_info.add_base_url("http://software.opensuse.org/download/home:/Arvin42/openSUSE_Factory/") -repo_info.add_base_url("file:///ARVIN/zypp/trunk/repotools/tmp") +repo_info.add_base_url("file:///suse/aschnell/tmp") repo_manager.add_repository(repo_info) diff --git a/examples/ruby/parse2.rb b/examples/ruby/parse2.rb index 6e08128..f114ed4 100644 --- a/examples/ruby/parse2.rb +++ b/examples/ruby/parse2.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp @@ -21,7 +22,7 @@ repo_info.set_enabled(true) repo_info.set_autorefresh(false) # repo_info.add_base_url("ftp://dist.suse.de/install/stable-x86/") # repo_info.add_base_url("http://software.opensuse.org/download/home:/Arvin42/openSUSE_Factory/") -repo_info.add_base_url("file:///ARVIN/zypp/trunk/repotools/tmp/") +repo_info.add_base_url("file:///suse/aschnell/tmp") repo_manager.add_repository(repo_info) diff --git a/examples/ruby/play_with_pool_and_target.rb b/examples/ruby/play_with_pool_and_target.rb index 6774b86..2642e82 100644 --- a/examples/ruby/play_with_pool_and_target.rb +++ b/examples/ruby/play_with_pool_and_target.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp diff --git a/examples/ruby/play_with_repos.rb b/examples/ruby/play_with_repos.rb index c7cdf17..d134176 100644 --- a/examples/ruby/play_with_repos.rb +++ b/examples/ruby/play_with_repos.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp diff --git a/examples/ruby/test.rb b/examples/ruby/test.rb index 4bd1e9a..7b63c45 100644 --- a/examples/ruby/test.rb +++ b/examples/ruby/test.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' include Zypp diff --git a/examples/ruby/test2.rb b/examples/ruby/test2.rb index ed80741..2bafee5 100644 --- a/examples/ruby/test2.rb +++ b/examples/ruby/test2.rb @@ -1,3 +1,4 @@ +#!/usr/bin/ruby require 'zypp' require 'pathname' |