MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _termux_pkg_install

Function _termux_pkg_install

Scripts/ButSystem.py:89–105  ·  view source on GitHub ↗

_termux_pkg_install. Internal helper function. This docstring was expanded to make future maintenance easier. Args: pkgs: Parameter. Returns: Varies.

(pkgs)

Source from the content-addressed store, hash-verified

87Returns:
88 Varies.
89"""
90 prefix = os.environ.get("PREFIX", "")
91 return ("com.termux" in prefix) or os.path.exists("/data/data/com.termux/files/usr/bin/pkg")
92
93def _termux_pkg_install(pkgs):
94 """_termux_pkg_install.
95
96Internal helper function.
97
98This docstring was expanded to make future maintenance easier.
99
100Args:
101 pkgs: Parameter.
102
103Returns:
104 Varies.
105"""
106 if isinstance(pkgs, str):
107 pkgs = [pkgs]
108 _bash("pkg update -y", capture=False)

Callers 1

ensure_dependenciesFunction · 0.70

Calls 1

_bashFunction · 0.70

Tested by

no test coverage detected