diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2010-07-14 11:53:27 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2010-07-14 11:53:27 (GMT) |
commit | 3644facf0a296c7d55b44394942b866529361248 (patch) | |
tree | e01fa37d1bc1e29594528fd19f70d05e613b907d /src/carquinyol/layoutmanager.py | |
parent | 989914ce5d547c78dab8f204d7bf8b81bf5b6f0a (diff) |
Invert index_updated logic #2095
Diffstat (limited to 'src/carquinyol/layoutmanager.py')
-rw-r--r-- | src/carquinyol/layoutmanager.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/carquinyol/layoutmanager.py b/src/carquinyol/layoutmanager.py index 8402b6d..5c67203 100644 --- a/src/carquinyol/layoutmanager.py +++ b/src/carquinyol/layoutmanager.py @@ -37,16 +37,6 @@ class LayoutManager(object): self._create_if_needed(self.get_checksums_dir()) self._create_if_needed(self.get_queue_path()) - index_updated_path = os.path.join(self._root_path, 'index_updated') - if os.path.exists(index_updated_path): - self._index_updated = True - elif self._is_empty(): - open(index_updated_path, 'w').close() - self.set_version(CURRENT_LAYOUT_VERSION) - self._index_updated = True - else: - self._index_updated = False - def _create_if_needed(self, path): if not os.path.exists(path): os.makedirs(path) @@ -89,21 +79,6 @@ class LayoutManager(object): def get_queue_path(self): return os.path.join(self.get_checksums_dir(), 'queue') - def _is_index_updated(self): - return self._index_updated - - def _set_index_updated(self, index_updated): - if index_updated != self._index_updated: - self._index_updated = index_updated - - index_updated_path = os.path.join(self._root_path, 'index_updated') - if os.path.exists(index_updated_path): - os.remove(index_updated_path) - else: - open(index_updated_path, 'w').close() - - index_updated = property(_is_index_updated, _set_index_updated) - def find_all(self): uids = [] for f in os.listdir(self._root_path): |