report more about what is really done

This commit is contained in:
Benjamin Dauvergne 2016-04-25 13:10:26 +02:00
parent 41eda434d9
commit 1a422bfd52
2 changed files with 4 additions and 1 deletions

View File

@ -305,6 +305,7 @@ def build_project(dist, arch, project, package, new):
project['build_branch'].replace('/', '_'),
arch)
)
print 'SOURCE_BUILD:', source_build
if os.path.exists(source_build):
source_opt = '-b'
else:

View File

@ -85,7 +85,8 @@ def cat(file_path):
return content
def touch(fname):
with file(fname, 'a'):
print 'TOUCH:', fname
with open(fname, 'a'):
os.utime(fname, None)
def error(msg, build_dir=None, exit_code=1):
@ -97,6 +98,7 @@ def error(msg, build_dir=None, exit_code=1):
def call(cmd):
""" cmd: command line
"""
print 'CALL:', cmd
rcode = subprocess.call(cmd, shell=True)
if rcode != 0:
error(cmd)