[Sugar-devel] [PATCH sugar] Fix search on external device OLPC #10808

Simon Schampijer simon at schampijer.de
Mon Apr 4 11:54:51 EDT 2011


We passed the wrong ordering of arguments to _get_file_metadata,
regression fix.

Signed-off-by: Simon Schampijer <simon at laptop.org>
---
 src/jarabe/journal/model.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py
index 9cea65e..f8d68a7 100644
--- a/src/jarabe/journal/model.py
+++ b/src/jarabe/journal/model.py
@@ -371,7 +371,7 @@ class InplaceResultSet(BaseResultSet):
 
         if self._regex is not None and \
                 not self._regex.match(full_path):
-            metadata = _get_file_metadata(stat, full_path,
+            metadata = _get_file_metadata(full_path, stat,
                                           fetch_preview=False)
             if not metadata:
                 return
-- 
1.7.4



More information about the Sugar-devel mailing list