pull: move to pmb/commands/pull.py (MR 2252)

Fixes:
  TypeError: pull() takes 0 positional arguments but 1 was given
This commit is contained in:
Oliver Smith 2024-06-20 20:38:10 +02:00
parent e2461f00a2
commit 9e2bbf80e0
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 41 additions and 27 deletions

View file

@ -593,32 +593,6 @@ def bootimg_analyze(args: PmbArgs):
logging.info(tmp_output)
def pull():
failed = []
for repo in pmb.config.git_repos.keys():
if pmb.helpers.git.pull(repo) < 0:
failed.append(repo)
if not failed:
return True
logging.info("---")
logging.info("WARNING: failed to update: " + ", ".join(failed))
logging.info("")
logging.info("'pmbootstrap pull' will only update the repositories, if:")
logging.info("* they are on an officially supported branch (e.g. master)")
logging.info("* the history is not conflicting (fast-forward is possible)")
logging.info("* the git workdirs are clean")
logging.info("You have changed mentioned repositories, so they don't meet")
logging.info("these conditions anymore.")
logging.info("")
logging.info("Fix and try again:")
for name_repo in failed:
logging.info("* " + pmb.helpers.git.get_path(name_repo))
logging.info("---")
return False
def lint(args: PmbArgs):
packages: Sequence[str] = args.packages
if not packages: