diff options
author | Martin Langhoff <martin@laptop.org> | 2012-11-08 19:05:52 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-11-09 08:04:34 (GMT) |
commit | f3473cdae23fef5cecb58da61b37329153c9d38d (patch) | |
tree | dbf1c284ad3519c4e3576db1a7c777f859144890 | |
parent | 769c4199f39cb31ae9736051a6332bc77dbb8ad9 (diff) |
Bring back index_path variable
The "When rebuilding the index use the index in the tmpfs" patch
removed one line too many. We do need to know the index_path
to be able to replace it.
Thanks to Daniel Narvaez for the heads up.
Signed-off-by: Martin Langhoff <martin@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r-- | src/carquinyol/datastore.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/carquinyol/datastore.py b/src/carquinyol/datastore.py index d9bd56b..212901b 100644 --- a/src/carquinyol/datastore.py +++ b/src/carquinyol/datastore.py @@ -177,6 +177,7 @@ class DataStore(dbus.service.Object): logger.warn('Attempting to move tempfs index to disk') # move to internal disk try: + index_path = layoutmanager.get_instance().get_index_path() if os.path.exists(index_path): shutil.rmtree(index_path) shutil.copytree(temp_index_path, index_path) |