[packaging/pip] Make binary utility tools functional

This commit is contained in:
tobi-wan-kenobi 2020-05-10 12:52:20 +02:00
parent 92577e7d26
commit c560c07890
5 changed files with 19 additions and 10 deletions

View file

@ -22,15 +22,15 @@ import core.decorators
import util.cli
import util.format
from bumblebee_status.discover import utility
# list of repositories.
# the last one should always be other
repos = ["core", "extra", "community", "multilib", "testing", "other"]
def get_pacman_info(widget, path):
cmd = "{}/../../bin/pacman-updates".format(path)
if not os.path.exists(cmd):
cmd = "/usr/share/bumblebee-status/bin/pacman-update"
cmd = utility("pacman-updates")
result = util.cli.execute(cmd, ignore_errors=True)
count = len(repos) * [0]