Commit f6bd2170 authored by Roman Yurchak's avatar Roman Yurchak

Fix string escaping and logging

parent c2939bca
...@@ -60,7 +60,7 @@ def collect_args(basename): ...@@ -60,7 +60,7 @@ def collect_args(basename):
env['PATH'] = path env['PATH'] = path
# determine the package name from the current directory # determine the package name from the current directory
re_res = re.match('.*packages/(?P<name>[\w\-]+)/build.*', re_res = re.match(r'.*packages/(?P<name>[\w\-]+)/build.*',
env['PWD']) env['PWD'])
if re_res: if re_res:
package_name = re_res.group('name') package_name = re_res.group('name')
...@@ -87,9 +87,9 @@ def collect_args(basename): ...@@ -87,9 +87,9 @@ def collect_args(basename):
with open(sys.argv[out_idx], 'wb') as fh: with open(sys.argv[out_idx], 'wb') as fh:
fh.write(b'') fh.write(b'')
skip = True skip = True
with open('build.log', 'a') as fd: with open('build.log', 'a') as fd:
if skip: # TODO: store skip status in the build.log
fd.write('SKIP\n')
json.dump([basename] + sys.argv[1:], fd) json.dump([basename] + sys.argv[1:], fd)
fd.write('\n') fd.write('\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment