Don't return error code in 40-updates

Closes #458
This commit is contained in:
zador-blood-stained 2016-09-05 15:27:57 +03:00
parent 4da09b4895
commit b28c7ac408

View file

@ -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