summaryrefslogtreecommitdiff
path: root/python/build/quilt.py
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-09 22:57:31 +0100
committerMax Kellermann <max@musicpd.org>2018-02-09 22:59:12 +0100
commit927071e08511442604e7514aac8399229f722b63 (patch)
tree36e89b96c740d164353614b577e985197b61b9b5 /python/build/quilt.py
parent6ba918b20346056294c15bdf1abd207f1dca84b4 (diff)
python/build/project.py: add quilt support
Diffstat (limited to 'python/build/quilt.py')
-rw-r--r--python/build/quilt.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/build/quilt.py b/python/build/quilt.py
new file mode 100644
index 000000000..876453d2b
--- /dev/null
+++ b/python/build/quilt.py
@@ -0,0 +1,9 @@
+import subprocess
+
+def run_quilt(toolchain, cwd, patches_path, *args):
+ env = dict(toolchain.env)
+ env['QUILT_PATCHES'] = patches_path
+ subprocess.check_call(['quilt'] + list(args), cwd=cwd, env=env)
+
+def push_all(toolchain, src_path, patches_path):
+ run_quilt(toolchain, src_path, patches_path, 'push', '-a')