Add script to report the number of system updates
This commit is contained in:
11
packageupdatecount.py
Executable file
11
packageupdatecount.py
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
import os
|
||||||
|
from entropy.client.interfaces import Client
|
||||||
|
|
||||||
|
entropy_client = Client()
|
||||||
|
|
||||||
|
updates, removals, fine, downgrades = entropy_client.calculate_updates()
|
||||||
|
|
||||||
|
print len(updates)
|
||||||
|
|
||||||
Reference in New Issue
Block a user