diff options
author | 2011-08-19 18:08:43 -0700 | |
---|---|---|
committer | 2011-08-19 18:08:43 -0700 | |
commit | f1ac6fc5b697632d4db04265bc0c0ec6554e6855 (patch) | |
tree | 10004ab75727065df301e61e66db41651d702cba /layman/api.py | |
parent | remove some dead ERROR constants (diff) | |
download | layman-f1ac6fc5b697632d4db04265bc0c0ec6554e6855.tar.gz layman-f1ac6fc5b697632d4db04265bc0c0ec6554e6855.tar.bz2 layman-f1ac6fc5b697632d4db04265bc0c0ec6554e6855.zip |
fix success reporting identified in bug 379779. Improve and change error output from info(), warn() to error().
Diffstat (limited to 'layman/api.py')
-rwxr-xr-x | layman/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layman/api.py b/layman/api.py index cfd9a68..7894c56 100755 --- a/layman/api.py +++ b/layman/api.py @@ -441,7 +441,7 @@ class LaymanAPI(object): """ try: - dbreload = self._get_remote_db().cache() + dbreload, succeeded = self._get_remote_db().cache() self.output.debug( 'LaymanAPI.fetch_remote_list(); cache updated = %s' % str(dbreload),8) @@ -450,7 +450,7 @@ class LaymanAPI(object): + str(error)) return False self.get_available(dbreload) - return True + return succeeded def get_available(self, dbreload=False): |