6 lines
162 B
Python
6 lines
162 B
Python
import subprocess
|
|
import sys
|
|
|
|
def delegate_to_pacman(pkgname: str):
|
|
result = subprocess.run(["sudo", "pacman", "-S", pkgname])
|
|
sys.exit(result.returncode) |