Remove check build

This commit is contained in:
Dimitris Zlatanidis 2015-09-02 02:15:03 +03:00
parent ad4d6591f8
commit 3fb39f9710

View file

@ -31,8 +31,6 @@ import tarfile
import subprocess
import multiprocessing
from slpkg.pkg.find import find_package
from slpkg.messages import Msg
from slpkg.checksum import check_md5
from slpkg.__metadata__ import MetaData as _meta_
@ -105,21 +103,12 @@ class BuildPackage(object):
subprocess.call("{0} ./{1}.SlackBuild".format(
" ".join(pass_var), self.prgnam, shell=True))
os.chdir(self.path)
self._check_if_build()
except (OSError, IOError):
self.msg.pkg_not_found("\n", self.prgnam, "Wrong file", "\n")
except KeyboardInterrupt:
print("") # new line at exit
raise SystemExit()
def _check_if_build(self):
"""Check if package build normal in /tmp directory
"""
find = find_package(self.prgnam + self.meta.sp, self.meta.output)
if not find:
self.msg.build_FAILED(self.prgnam)
raise SystemExit()
def _create_md5_dict(self):
"""Create md5 dictionary per source
"""