提交 1cbe83ac 编写于 作者: M Mike O'Connor

towpdown import_known_changes

Signed-off-by: NMike O'Connor <stew@vireo.org>
上级 808bfb20
......@@ -195,7 +195,7 @@ class ChangesGenerator(threading.Thread):
if os.path.exists(checkdir):
print "Looking into %s" % (checkdir)
for dirpath, dirnames, filenames in os.walk(checkdir, topdown=False):
for dirpath, dirnames, filenames in os.walk(checkdir, topdown=True):
if not filenames:
# Empty directory (or only subdirectories), next
continue
......@@ -255,13 +255,12 @@ class ImportThread(threading.Thread):
except ChangesUnicodeError:
warn("found invalid changes file, not properly utf-8 encoded")
except KeyboardInterrupt:
print("Caught C-c; on ImportThread. terminating.")
self.parent.plsDie()
sys.exit(1)
except:
traceback.print_exc()
self.parent.plsDie()
sys.exit(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册