data = self._data[cur_index]
d, l_no, dpath = self.find_path_in_index(data, upath)
if not d:
- # file not found, so it's not in the index, so it must be
- # removed
- if cur_index == 0:
- self.delete(path)
-
- # now we restore parent_directory mtime
- os.utime(parent_dir, (parent_dir_mtime, parent_dir_mtime))
- return
- # this means that the path was found in the first index as listed
- # not in a previous one, so something wrong happened.
- else:
- self._deltatar.logger.warn('Error restoring file %s from '
- 'index, not found in index %s' % (path, data['path']))
- return
+ self._deltatar.logger.warn('Error restoring file %s from '
+ 'index, not found in index %s' % (path, data['path']))
+ return
if d.get('path', '').startswith('delete://'):
self._deltatar.logger.warn(('Strange thing happened, file '