moved apt.py → argos-apt.py

This commit is contained in:
Tobias Schmidl 2020-09-21 08:13:32 +02:00
parent 8369cddf58
commit 479057b7f5

View file

@ -12,7 +12,7 @@
# <bitbar.abouturl>https://github.com/schtobia/argos-httping/blob/master/httping.py</bitbar.abouturl>
from aptdaemon import client
import apt
from apt import Cache
import sys
__author__ = "Tobias Schmidl"
@ -30,7 +30,7 @@ class Themes:
apt_client = client.AptClient()
apt_client.update_cache(wait=True)
cache = apt.Cache()
cache = Cache()
cache.open()
update_list = [pkg for pkg in cache if pkg.is_upgradable]
if len(update_list) == 0: