Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-03-22 16:18:38 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-03-22 16:18:38 (GMT)
commit372d1c69b8fc7662ba0eefb8299db47bfbecb929 (patch)
tree8245539588eac32a0421fd05f8bee79659af9445
parentc2583a7aec5244bda51cdb6d4b033357cba42bee (diff)
parent09252b5dea87e2d07634dc11980c6fcd17383d92 (diff)
Merge commit 'refs/top-bases/t/rainbow-0.8' into t/rainbow-0.8
-rw-r--r--src/carquinyol/layoutmanager.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/carquinyol/layoutmanager.py b/src/carquinyol/layoutmanager.py
index 0b0b91a..8402b6d 100644
--- a/src/carquinyol/layoutmanager.py
+++ b/src/carquinyol/layoutmanager.py
@@ -114,6 +114,14 @@ class LayoutManager(object):
return uids
def _is_empty(self):
+ """Check if there is any existing entry.
+
+ All data store layout versions are handled. Will err on the safe
+ side (i.e. return False if there might be any entry)."""
+ if os.path.exists(os.path.join(self._root_path, 'store')):
+ # unmigrated 0.82 data store
+ return False
+
for f in os.listdir(self._root_path):
if os.path.isdir(os.path.join(self._root_path, f)) and len(f) == 2:
for g in os.listdir(os.path.join(self._root_path, f)):