]> err.no Git - dak/commitdiff
towpdown import_known_changes
authorMike O'Connor <stew@vireo.org>
Fri, 30 Oct 2009 14:13:59 +0000 (15:13 +0100)
committerMike O'Connor <stew@vireo.org>
Fri, 30 Oct 2009 14:13:59 +0000 (15:13 +0100)
Signed-off-by: Mike O'Connor <stew@vireo.org>
dak/import_known_changes.py

index 3702411d3cbe9908ad034c8fbae3493177241099..d286775abcb977770b9f15ca99815d2f94017ff4 100755 (executable)
@@ -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)