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)
patch = patch.strip()
if patch:
if ' ' in patch:
patch, md5sum = patch.split()
patch, md5sum = patch.split(' ', 1)
md5sum = md5sum.strip()
else:
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))
self.logger.info('Applying patch %r' % patch)
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