From 4255d4686ba66b284ada2e0d3f844a3ef2fc8544 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 26 Aug 2014 04:15:52 +0300 Subject: [PATCH] fix arch --- slpkg/sbo/check.py | 2 +- slpkg/sbo/slackbuild.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/sbo/check.py b/slpkg/sbo/check.py index 924498ff..b436621e 100755 --- a/slpkg/sbo/check.py +++ b/slpkg/sbo/check.py @@ -69,7 +69,7 @@ def sbo_check(): elif "-noarch-" in pkg: arch = "noarch" else: - arch = "" + arch = os.uname()[4] name = pkg[:-(len(arch) + len("_SBo") + 3)] pkg_version = get_file(name, "-")[1:] name = name[:-(len(pkg_version) + 1)] diff --git a/slpkg/sbo/slackbuild.py b/slpkg/sbo/slackbuild.py index 6740e42c..85415ab8 100755 --- a/slpkg/sbo/slackbuild.py +++ b/slpkg/sbo/slackbuild.py @@ -83,7 +83,7 @@ def sbo_build(name): elif "arm" in arch: arch = "arm" else: - arch = "" + arch = os.uname()[4] if "UNSUPPORTED" in src: arch = "UNSUPPORTED" elif "UNTESTED" in src: