For Arch in do_install, update first, then install
This commit is contained in:
parent
0e2920d658
commit
fb43a2cb56
1 changed files with 11 additions and 1 deletions
12
install.py
12
install.py
|
@ -211,9 +211,19 @@ class Installer:
|
||||||
this_stderr: Optional[int] = subprocess.DEVNULL if self.hide_commands else None
|
this_stderr: Optional[int] = subprocess.DEVNULL if self.hide_commands else None
|
||||||
|
|
||||||
ui.info_2("Installing packages...")
|
ui.info_2("Installing packages...")
|
||||||
|
|
||||||
|
if self.operating_system == "arch":
|
||||||
|
subprocess.run(
|
||||||
|
"sudo pacman -Syu",
|
||||||
|
check=True,
|
||||||
|
shell=True,
|
||||||
|
stdout=this_stdout,
|
||||||
|
stderr=this_stderr,
|
||||||
|
)
|
||||||
|
|
||||||
for i, package in enumerate(packages):
|
for i, package in enumerate(packages):
|
||||||
if self.operating_system == "arch":
|
if self.operating_system == "arch":
|
||||||
command = "sudo pacman -Syu --needed --noconfirm {}".format(package)
|
command = "sudo pacman -S --needed --noconfirm {}".format(package)
|
||||||
elif self.operating_system == "debian":
|
elif self.operating_system == "debian":
|
||||||
command = "sudo apt install -y {}".format(package)
|
command = "sudo apt install -y {}".format(package)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue