Again over --debug flag.
This commit is contained in:
parent
8b8aadd911
commit
d57cfc2637
|
@ -36,7 +36,8 @@ class Build():
|
||||||
LANGBASIC = [ 'en-GB' ]
|
LANGBASIC = [ 'en-GB' ]
|
||||||
ARCHSTD = [ 'x86', 'x86_64' ]
|
ARCHSTD = [ 'x86', 'x86_64' ]
|
||||||
|
|
||||||
def __init__(self, version: loaih.Version, arch):
|
def __init__(self, version: loaih.Version, arch, debug=False):
|
||||||
|
self.debug = debug
|
||||||
self.version = version
|
self.version = version
|
||||||
self.tidy_folder = True
|
self.tidy_folder = True
|
||||||
self.verbose = True
|
self.verbose = True
|
||||||
|
@ -651,5 +652,6 @@ class Build():
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"""Destructor"""
|
"""Destructor"""
|
||||||
|
if not self.debug:
|
||||||
# Cleaning up build directory
|
# Cleaning up build directory
|
||||||
shutil.rmtree(self.builddir)
|
shutil.rmtree(self.builddir)
|
||||||
|
|
|
@ -90,6 +90,7 @@ def build(arch, language, offline, portable, updatable, download_path, repo_path
|
||||||
for myquery in queries:
|
for myquery in queries:
|
||||||
for appbuild in loaih.build.Collection(myquery, arches):
|
for appbuild in loaih.build.Collection(myquery, arches):
|
||||||
# Configuration phase
|
# Configuration phase
|
||||||
|
appbuild.debug = debug
|
||||||
appbuild.tidy_folder = False
|
appbuild.tidy_folder = False
|
||||||
appbuild.language = language
|
appbuild.language = language
|
||||||
appbuild.offline_help = offline
|
appbuild.offline_help = offline
|
||||||
|
@ -111,7 +112,6 @@ def build(arch, language, offline, portable, updatable, download_path, repo_path
|
||||||
appbuild.checksums()
|
appbuild.checksums()
|
||||||
appbuild.publish()
|
appbuild.publish()
|
||||||
|
|
||||||
if not debug:
|
|
||||||
del appbuild
|
del appbuild
|
||||||
|
|
||||||
if not keep:
|
if not keep:
|
||||||
|
|
Loading…
Reference in New Issue