manage (download, pull) pkgbuilds.git, move it inside .cache. add git() convenience wrapper
This commit is contained in:
parent
b191e307aa
commit
52458bd314
4 changed files with 51 additions and 7 deletions
4
utils.py
4
utils.py
|
@ -41,3 +41,7 @@ def mount(src: str, dest: str, options=['bind'], fs_type=None) -> subprocess.Com
|
|||
if result.returncode == 0:
|
||||
atexit.register(umount, dest)
|
||||
return result
|
||||
|
||||
|
||||
def git(cmd: list[str], dir='.', capture_output=False) -> subprocess.CompletedProcess:
|
||||
return subprocess.run(['git'] + cmd, cwd=dir, capture_output=capture_output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue