You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
453 B
Python
13 lines
453 B
Python
import subprocess
|
|
from typing import Union
|
|
|
|
from .toolchain import AnyToolchain
|
|
|
|
def run_quilt(toolchain: AnyToolchain, cwd: str, patches_path: str, *args: str) -> None:
|
|
env = dict(toolchain.env)
|
|
env['QUILT_PATCHES'] = patches_path
|
|
subprocess.check_call(['quilt'] + list(args), cwd=cwd, env=env)
|
|
|
|
def push_all(toolchain: AnyToolchain, src_path: str, patches_path: str) -> None:
|
|
run_quilt(toolchain, src_path, patches_path, 'push', '-a')
|