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