[jhbuild] packagedb: Actually return value from decorated function
- From: Colin Walters <walters src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [jhbuild] packagedb: Actually return value from decorated function
 
- Date: Tue,  4 Oct 2011 13:07:50 +0000 (UTC)
 
commit 48c351e2d5d8bdc32c36edea36a636c3fdd7e7b9
Author: Colin Walters <walters verbum org>
Date:   Mon Oct 3 19:31:42 2011 -0400
    packagedb: Actually return value from decorated function
    
    Not doing so broke get().
 jhbuild/utils/packagedb.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/utils/packagedb.py b/jhbuild/utils/packagedb.py
index e45b58c..f291c3c 100644
--- a/jhbuild/utils/packagedb.py
+++ b/jhbuild/utils/packagedb.py
@@ -145,7 +145,7 @@ class PackageDB:
                         and self._entries_stat[stat.ST_MTIME] == stbuf[stat.ST_MTIME]):
                     logging.info(_('Package DB modified externally, rereading'))
                     self._read_cache()
-            function(self, *args, **kwargs)
+            return function(self, *args, **kwargs)
         return decorate
 
     def _read_cache(self):
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]