mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
Update used var
This commit is contained in:
parent
34fa8eaceb
commit
1c9c5f827b
1 changed files with 5 additions and 3 deletions
|
@ -75,11 +75,13 @@ def track_dep(name, repo, flag):
|
||||||
_meta_.color["YELLOW"], _meta_.color["ENDC"]))
|
_meta_.color["YELLOW"], _meta_.color["ENDC"]))
|
||||||
index = 0
|
index = 0
|
||||||
for pkg in dependencies:
|
for pkg in dependencies:
|
||||||
used = ""
|
used = check_used(pkg)
|
||||||
if flag == "--check-deps":
|
if used and flag == "--check-deps":
|
||||||
used = "{0} {1}{2}{3}".format(
|
used = "{0} {1}{2}{3}".format(
|
||||||
"is dependency -->", _meta_.color["CYAN"],
|
"is dependency -->", _meta_.color["CYAN"],
|
||||||
", ".join(check_used(pkg)), _meta_.color["ENDC"])
|
", ".join(used), _meta_.color["ENDC"])
|
||||||
|
else:
|
||||||
|
used = ""
|
||||||
index += 1
|
index += 1
|
||||||
installed = ""
|
installed = ""
|
||||||
if find_package(pkg + _meta_.sp, _meta_.pkg_path):
|
if find_package(pkg + _meta_.sp, _meta_.pkg_path):
|
||||||
|
|
Loading…
Add table
Reference in a new issue