summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-11-02 15:27:53 +0100
committerMichael Schroeder <mls@suse.de>2012-11-02 15:27:53 +0100
commit26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93 (patch)
tree38bba17043688d19423d9a4b13ece38e8a0c12af /examples
parent01226ce8a0d8cdcb27a15ed0f4362723ee71dcf7 (diff)
downloadlibsolv-26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93.tar.gz
libsolv-26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93.tar.bz2
libsolv-26f2f1fe6e2f6a27c45b01c2e53970ec25b32e93.zip
make pool.setarch() do the right thing
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/p5solv2
-rwxr-xr-xexamples/pysolv2
-rwxr-xr-xexamples/rbsolv4
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