changeset 40:34704814569f

mq check: need a path to the status file iff the series file exists
author Robin Farine <robin.farine@terminus.org>
date Fri, 22 Dec 2006 22:05:58 +0100
parents 62227d7f2d23
children a363b463f327
files forest.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/forest.py	Fri Dec 22 22:01:50 2006 +0100
+++ b/forest.py	Fri Dec 22 22:05:58 2006 +0100
@@ -93,9 +93,8 @@
         path = os.path.join(rpath, e)
         if os.path.isdir(path):
             series = os.path.join(path, "series")
-            status = os.path.join(path, "status")
             if os.path.isfile(series):
-                s = os.stat(status)
+                s = os.stat(os.path.join(path, "status"))
                 if s.st_size > 0:
                     return True
     return False