[matter] binpms: return int on push()

This commit is contained in:
Fabio Erculiani
2014-07-05 17:20:30 +01:00
parent f506573ae4
commit 7e2846c491
2 changed files with 4 additions and 1 deletions

View File

@@ -297,7 +297,7 @@ class BaseBinaryPMS(object):
"""
pkgpush_f = self._nsargs.portage_pkgpush
if pkgpush_f is None:
return
return 0
hook_name = pkgpush_f.name
if not hook_name.startswith("/"):
@@ -314,6 +314,7 @@ class BaseBinaryPMS(object):
raise BaseBinaryPMS.RepositoryPushError(
"cannot push packages, exit status: %d" % (
exit_st,))
return exit_st
def clear_cache(self):
"""

View File

@@ -433,6 +433,8 @@ class EntropyBinaryPMS(BaseBinaryPMS):
raise EntropyBinaryPMS.RepositoryPushError(
"ouch during repo push")
return exit_st
def clear_cache(self):
"""
Overridden from BaseBinaryPMS.