[jhbuild] packagedb: Actually return value from decorated function



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]