mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-27 17:21:34 +00:00
parent
4da09b4895
commit
b28c7ac408
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ def refreshdata():
|
||||||
cache = apt_pkg.Cache(OpNullProgress())
|
cache = apt_pkg.Cache(OpNullProgress())
|
||||||
except SystemError as e:
|
except SystemError as e:
|
||||||
sys.stderr.write("Error: Opening the cache (%s)" % 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
|
# setup a DepCache instance to interact with the repo
|
||||||
depcache = apt_pkg.DepCache(cache)
|
depcache = apt_pkg.DepCache(cache)
|
||||||
|
@ -74,7 +74,7 @@ def refreshdata():
|
||||||
# give up if packages are broken
|
# give up if packages are broken
|
||||||
if depcache.broken_count > 0:
|
if depcache.broken_count > 0:
|
||||||
sys.stderr.write("Error: Broken packages exist.")
|
sys.stderr.write("Error: Broken packages exist.")
|
||||||
sys.exit(-1)
|
sys.exit(0)
|
||||||
|
|
||||||
# mark possible packages
|
# mark possible packages
|
||||||
try:
|
try:
|
||||||
|
@ -88,7 +88,7 @@ def refreshdata():
|
||||||
depcache.upgrade()
|
depcache.upgrade()
|
||||||
except SystemError as e:
|
except SystemError as e:
|
||||||
sys.stderr.write("Error: Couldn't mark the upgrade (%s)" % e)
|
sys.stderr.write("Error: Couldn't mark the upgrade (%s)" % e)
|
||||||
sys.exit(-1)
|
sys.exit(0)
|
||||||
|
|
||||||
# run around the packages
|
# run around the packages
|
||||||
upgrades = 0
|
upgrades = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue