forked from Mirror/pmbootstrap
pmb: Use unpacking operator to concatenate collections (MR 2525)
See https://docs.astral.sh/ruff/rules/collection-literal-concatenation This is also slightly faster according to a microbenchmark that shows it taking around 19% less time to run: https://github.com/astral-sh/ruff/pull/1957#issue-1538092351
This commit is contained in:
parent
4868cc9548
commit
c797b30dfe
14 changed files with 29 additions and 33 deletions
|
@ -158,7 +158,7 @@ def init(chroot: Chroot, usr_merge: UsrMerge = UsrMerge.AUTO) -> None:
|
|||
pmb.helpers.repo.update(arch)
|
||||
pkgs = ["alpine-base"]
|
||||
cmd: list[PathString] = ["--initdb"]
|
||||
pmb.helpers.apk.run(cmd + ["add", *pkgs], chroot)
|
||||
pmb.helpers.apk.run([*cmd, "add", *pkgs], chroot)
|
||||
|
||||
# Merge /usr
|
||||
if usr_merge is UsrMerge.AUTO and pmb.config.is_systemd_selected(config):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue