Commit 8cd9ea9c authored by Łukasz Nowak's avatar Łukasz Nowak

Allow options per patch.

parent 84fea623
...@@ -360,9 +360,13 @@ call(["make", "install"], cwd=workdir, env=env) ...@@ -360,9 +360,13 @@ call(["make", "install"], cwd=workdir, env=env)
patch = patch.strip() patch = patch.strip()
if patch: if patch:
if ' ' in patch: if ' ' in patch:
patch, md5sum = patch.split() patch, md5sum = patch.split(' ', 1)
md5sum = md5sum.strip()
else: else:
md5sum = None md5sum = None
if md5sum is not None and ' ' in md5sum:
md5sum, patch_options = md5sum.split(' ', 1)
patch_options = patch_options.split(' ')
kwargs['stdin'] = open(self.download(patch, md5sum)) kwargs['stdin'] = open(self.download(patch, md5sum))
self.logger.info('Applying patch %r' % patch) self.logger.info('Applying patch %r' % patch)
call([patch_binary] + patch_options, **kwargs) call([patch_binary] + patch_options, **kwargs)
......
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