new way of handlink update check thx lxnay
Package-Manager: portage-2.2.0_alpha142 RepoMan-Options: --force
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from entropy.client.interfaces import Client
|
||||
cl = Client()
|
||||
print(len(cl.calculate_updates()[0]))
|
||||
3
app-misc/sablink-core/files/equo-update-check
Normal file
3
app-misc/sablink-core/files/equo-update-check
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
[ ! -e /tmp/.equoupdatecheck ] && echo "not checked for" > /tmp/.equoupdatecheck
|
||||
cat /tmp/.equoupdatecheck
|
||||
@@ -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
|
||||
@@ -31,5 +31,5 @@ echo '[0;40mUptime : [0;'${COLOUR_INFO3}';40m'$(uptime | cut -c 2-60)
|
||||
echo '[0;40mLogged on as : [0;'${COLOUR_INFO1}';40m'$(whoami)'[0;40m on [0;'${COLOUR_INFO1}';40m'$(tty)'[0;'${COLOUR_INFO3}';40m since [0;'${COLOUR_INFO1}';40m'$(date)''
|
||||
echo '[0;40mUsers logged in : [0;'${COLOUR_INFO1}';40m'$(who -q | more +1)''
|
||||
echo ''
|
||||
echo '[0;40mPackage updates : [0;'${COLOUR_INFO1}';40m'$(sablink-equo-check)' available updates'
|
||||
echo '[0;40mPackage updates : [0;'${COLOUR_INFO1}';40m'$(equo-update-check)' available updates'
|
||||
echo ''
|
||||
|
||||
Reference in New Issue
Block a user