This commit is contained in:
parent
7dfd579a5d
commit
38760d5553
@ -56,8 +56,13 @@ def isSecurityUpgrade(pkg, depcache):
|
||||
return False
|
||||
|
||||
def main():
|
||||
pkgs = get_updates()
|
||||
sys.exit(str(len(pkgs)))
|
||||
ret = -1
|
||||
try:
|
||||
pkgs = get_updates()
|
||||
ret = len(pkgs)
|
||||
except Exception as e:
|
||||
print(f"{e}", file=sys.stderr)
|
||||
print(ret)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user