Show More
@@ -266,15 +266,14 b' class Watcher(object):' | |||||
266 | return 'i' |
|
266 | return 'i' | |
267 | return type_ |
|
267 | return type_ | |
268 |
|
268 | |||
269 |
def updatestatus(self, wfn, st=None, status=None |
|
269 | def updatestatus(self, wfn, st=None, status=None): | |
270 | if st: |
|
270 | if st: | |
271 | status = self.filestatus(wfn, st) |
|
271 | status = self.filestatus(wfn, st) | |
272 | else: |
|
272 | else: | |
273 | self.statcache.pop(wfn, None) |
|
273 | self.statcache.pop(wfn, None) | |
274 | root, fn = self.split(wfn) |
|
274 | root, fn = self.split(wfn) | |
275 | d = self.dir(self.tree, root) |
|
275 | d = self.dir(self.tree, root) | |
276 |
|
|
276 | oldstatus = d.get(fn) | |
277 | oldstatus = d.get(fn) |
|
|||
278 | isdir = False |
|
277 | isdir = False | |
279 | if oldstatus: |
|
278 | if oldstatus: | |
280 | try: |
|
279 | try: | |
@@ -343,7 +342,7 b' class Watcher(object):' | |||||
343 | if status == 'r' and not st: |
|
342 | if status == 'r' and not st: | |
344 | self.updatestatus(wfn, st, status=status) |
|
343 | self.updatestatus(wfn, st, status=status) | |
345 | else: |
|
344 | else: | |
346 |
self.updatestatus(wfn, st |
|
345 | self.updatestatus(wfn, st) | |
347 | self.check_deleted('!') |
|
346 | self.check_deleted('!') | |
348 | self.check_deleted('r') |
|
347 | self.check_deleted('r') | |
349 |
|
348 |
General Comments 0
You need to be logged in to leave comments.
Login now