diff --git a/slpkg/__metadata__.py b/slpkg/__metadata__.py index 011da7cb..b315ba71 100644 --- a/slpkg/__metadata__.py +++ b/slpkg/__metadata__.py @@ -212,3 +212,11 @@ class MetaData(object): # computer architecture arch = os.uname()[4] + + # get sbo OUTPUT enviroment variable + try: + output = os.environ['OUTPUT'] + except KeyError: + output = tmp + if not output.endswith('/'): + output = output + '/' diff --git a/slpkg/sbo/slackbuild.py b/slpkg/sbo/slackbuild.py index 96585bee..648c6074 100644 --- a/slpkg/sbo/slackbuild.py +++ b/slpkg/sbo/slackbuild.py @@ -300,7 +300,7 @@ class SBoInstall(object): Search for binary packages in /tmp directory ''' binary = [] - for search in find_package(prgnam, _m.tmp): + for search in find_package(prgnam, _m.output): if "_SBo" in search: binary.append(search) return binary @@ -342,7 +342,7 @@ class SBoInstall(object): BuildPackage(script, sources, _m.build_path).build() binary_list = self.search_in_tmp(prgnam) try: - binary = (_m.tmp + max(binary_list)).split() + binary = (_m.output + max(binary_list)).split() except ValueError: build_FAILED(sbo_url, prgnam) sys.exit(0) diff --git a/slpkg/sbo/views.py b/slpkg/sbo/views.py index 5a8ac685..1a460914 100644 --- a/slpkg/sbo/views.py +++ b/slpkg/sbo/views.py @@ -213,11 +213,11 @@ class SBoNetwork(object): directory. ''' binary_list = [] - for search in find_package(prgnam, _m.tmp): + for search in find_package(prgnam, _m.output): if "_SBo" in search: binary_list.append(search) try: - binary = (_m.tmp + max(binary_list)).split() + binary = (_m.output + max(binary_list)).split() except ValueError: build_FAILED(self.sbo_url, prgnam) sys.exit(0)