packages.py: fix package update
cmd with --non-interactive
This commit is contained in:
parent
0e07a33968
commit
3390014a9c
1 changed files with 5 additions and 4 deletions
|
@ -117,7 +117,8 @@ def clone_pkbuilds(pkgbuilds_dir: str, repo_url: str, branch: str, interactive=F
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
raise Exception('failed switching branches')
|
raise Exception('failed switching branches')
|
||||||
if interactive:
|
if interactive:
|
||||||
if click.confirm('Would you like to try updating the PKGBUILDs repo?'):
|
if not click.confirm('Would you like to try updating the PKGBUILDs repo?'):
|
||||||
|
return
|
||||||
result = git(['pull'], pkgbuilds_dir)
|
result = git(['pull'], pkgbuilds_dir)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
raise Exception('failed to update pkgbuilds')
|
raise Exception('failed to update pkgbuilds')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue