mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 06:11:31 +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())
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue