moved apt.py → argos-apt.py
This commit is contained in:
parent
8369cddf58
commit
479057b7f5
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
# <bitbar.abouturl>https://github.com/schtobia/argos-httping/blob/master/httping.py</bitbar.abouturl>
|
# <bitbar.abouturl>https://github.com/schtobia/argos-httping/blob/master/httping.py</bitbar.abouturl>
|
||||||
|
|
||||||
from aptdaemon import client
|
from aptdaemon import client
|
||||||
import apt
|
from apt import Cache
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
__author__ = "Tobias Schmidl"
|
__author__ = "Tobias Schmidl"
|
||||||
|
@ -30,7 +30,7 @@ class Themes:
|
||||||
|
|
||||||
apt_client = client.AptClient()
|
apt_client = client.AptClient()
|
||||||
apt_client.update_cache(wait=True)
|
apt_client.update_cache(wait=True)
|
||||||
cache = apt.Cache()
|
cache = Cache()
|
||||||
cache.open()
|
cache.open()
|
||||||
update_list = [pkg for pkg in cache if pkg.is_upgradable]
|
update_list = [pkg for pkg in cache if pkg.is_upgradable]
|
||||||
if len(update_list) == 0:
|
if len(update_list) == 0:
|
Loading…
Reference in a new issue