mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
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,10 +117,11 @@ def clone_pkbuilds(pkgbuilds_dir: str, repo_url: str, branch: str, interactive=F
|
|||
if result.returncode != 0:
|
||||
raise Exception('failed switching branches')
|
||||
if interactive:
|
||||
if click.confirm('Would you like to try updating the PKGBUILDs repo?'):
|
||||
result = git(['pull'], pkgbuilds_dir)
|
||||
if result.returncode != 0:
|
||||
raise Exception('failed to update pkgbuilds')
|
||||
if not click.confirm('Would you like to try updating the PKGBUILDs repo?'):
|
||||
return
|
||||
result = git(['pull'], pkgbuilds_dir)
|
||||
if result.returncode != 0:
|
||||
raise Exception('failed to update pkgbuilds')
|
||||
|
||||
|
||||
def init_pkgbuilds(interactive=False):
|
||||
|
|
Loading…
Add table
Reference in a new issue