[packaging/pip] Make binary utility tools functional
This commit is contained in:
parent
92577e7d26
commit
c560c07890
5 changed files with 19 additions and 10 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue