new way of handlink update check thx lxnay

Package-Manager: portage-2.2.0_alpha142
RepoMan-Options: --force
This commit is contained in:
Mario Fetka
2012-12-01 14:20:31 +01:00
parent e184ab0c88
commit ec6286c340
6 changed files with 10 additions and 12 deletions

View File

@@ -1,5 +0,0 @@
#!/usr/bin/python
from entropy.client.interfaces import Client
cl = Client()
print(len(cl.calculate_updates()[0]))

View File

@@ -0,0 +1,3 @@
#!/bin/sh
[ ! -e /tmp/.equoupdatecheck ] && echo "not checked for" > /tmp/.equoupdatecheck
cat /tmp/.equoupdatecheck

View File

@@ -1,3 +1,3 @@
#!/bin/bash
LC_ALL=en_US.UTF-8 equo update &> /dev/null
LC_ALL=en_US.UTF-8 equo query updates --quiet > /tmp/.equoupdatecheck

View File

@@ -31,5 +31,5 @@ echo 'Uptime : [0;'${COLOUR_INFO3}';40m'$(uptime | cut -c 2-60)
echo 'Logged on as : [0;'${COLOUR_INFO1}';40m'$(whoami)' on [0;'${COLOUR_INFO1}';40m'$(tty)'[0;'${COLOUR_INFO3}';40m since [0;'${COLOUR_INFO1}';40m'$(date)''
echo 'Users logged in : [0;'${COLOUR_INFO1}';40m'$(who -q | more +1)''
echo ''
echo 'Package updates : [0;'${COLOUR_INFO1}';40m'$(sablink-equo-check)' available updates'
echo 'Package updates : [0;'${COLOUR_INFO1}';40m'$(equo-update-check)' available updates'
echo ''