diff options
author | Michael Schroeder <mls@suse.de> | 2012-11-02 15:27:53 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-11-02 15:27:53 +0100 |
commit | 26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93 (patch) | |
tree | 38bba17043688d19423d9a4b13ece38e8a0c12af /examples | |
parent | 01226ce8a0d8cdcb27a15ed0f4362723ee71dcf7 (diff) | |
download | libsolv-26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93.tar.gz libsolv-26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93.tar.bz2 libsolv-26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93.zip |
make pool.setarch() do the right thing
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/p5solv | 2 | ||||
-rwxr-xr-x | examples/pysolv | 2 | ||||
-rwxr-xr-x | examples/rbsolv | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/examples/p5solv b/examples/p5solv index 6cbe5dd..ebade1d 100755 --- a/examples/p5solv +++ b/examples/p5solv @@ -539,7 +539,7 @@ for my $reposdir (@reposdirs) { } my $pool = solv::Pool->new(); -$pool->setarch((POSIX::uname())[4]); +$pool->setarch(); $pool->set_loadcallback(\&load_stub); my $sysrepo = Repo::system->new('@System', 'system'); diff --git a/examples/pysolv b/examples/pysolv index d3e7d81..75da292 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -626,7 +626,7 @@ for reposdir in reposdirs: repos.append(repo) pool = solv.Pool() -pool.setarch(os.uname()[4]) +pool.setarch() pool.set_loadcallback(load_stub) # now load all enabled repos into the pool diff --git a/examples/rbsolv b/examples/rbsolv index 8ac3eca..eb77395 100755 --- a/examples/rbsolv +++ b/examples/rbsolv @@ -525,9 +525,7 @@ for reposdir in reposdirs do end pool = Solv::Pool.new() -# require 'sys/uname' ; sysarch = Sys::Uname.machine -sysarch = `uname -p`.strip -pool.setarch(sysarch) +pool.setarch() pool.set_loadcallback { |repodata| repo = repodata.repo.appdata |