drop args from helpers.git and chroot.apk (MR 2252)

be gone!

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-05-24 19:47:53 +02:00 committed by Oliver Smith
parent 52338c5e76
commit 1be8653935
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
17 changed files with 85 additions and 70 deletions

View file

@ -584,7 +584,7 @@ def bootimg_analyze(args: PmbArgs):
def pull(args: PmbArgs):
failed = []
for repo in pmb.config.git_repos.keys():
if pmb.helpers.git.pull(args, repo) < 0:
if pmb.helpers.git.pull(repo) < 0:
failed.append(repo)
if not failed:
@ -602,7 +602,7 @@ def pull(args: PmbArgs):
logging.info("")
logging.info("Fix and try again:")
for name_repo in failed:
logging.info("* " + pmb.helpers.git.get_path(args, name_repo))
logging.info("* " + pmb.helpers.git.get_path(name_repo))
logging.info("---")
return False
@ -623,7 +623,7 @@ def status(args: PmbArgs) -> None:
def ci(args: PmbArgs):
topdir = pmb.helpers.git.get_topdir(args, Path.cwd())
topdir = pmb.helpers.git.get_topdir(Path.cwd())
if not os.path.exists(topdir):
logging.error("ERROR: change your current directory to a git"
" repository (e.g. pmbootstrap, pmaports) before running"
@ -657,7 +657,7 @@ def ci(args: PmbArgs):
if "slow" not in script_data["options"]:
scripts_selected[script] = script_data
if not pmb.helpers.git.clean_worktree(args, topdir):
if not pmb.helpers.git.clean_worktree(topdir):
logging.warning("WARNING: this git repository has uncommitted changes")
if not scripts_selected: