From b28c7ac40848d96be21c12b2a6ad4566b669471c Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Mon, 5 Sep 2016 15:27:57 +0300 Subject: [PATCH] Don't return error code in 40-updates Closes #458 --- scripts/update-motd.d/40-updates | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/update-motd.d/40-updates b/scripts/update-motd.d/40-updates index 521782be55..fd719e805e 100644 --- a/scripts/update-motd.d/40-updates +++ b/scripts/update-motd.d/40-updates @@ -60,7 +60,7 @@ def refreshdata(): cache = apt_pkg.Cache(OpNullProgress()) except SystemError as e: sys.stderr.write("Error: Opening the cache (%s)" % e) - sys.exit(-1) + sys.exit(0) # setup a DepCache instance to interact with the repo depcache = apt_pkg.DepCache(cache) @@ -74,7 +74,7 @@ def refreshdata(): # give up if packages are broken if depcache.broken_count > 0: sys.stderr.write("Error: Broken packages exist.") - sys.exit(-1) + sys.exit(0) # mark possible packages try: @@ -88,7 +88,7 @@ def refreshdata(): depcache.upgrade() except SystemError as e: sys.stderr.write("Error: Couldn't mark the upgrade (%s)" % e) - sys.exit(-1) + sys.exit(0) # run around the packages upgrades = 0