]> git.decadent.org.uk Git - dak.git/blobdiff - dak/import_known_changes.py
dak's "Dict" is a synonym of the 'dict' builtin
[dak.git] / dak / import_known_changes.py
index 5aa9a5805a7f1f4a10a2f8363bcada76b5e0e733..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,15 +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)
-                print("STUSTUSTUSTUSTU")
-                return
+
             except:
-                traceback.print_exc()
                 self.parent.plsDie()
                 sys.exit(1)
 
@@ -293,7 +290,7 @@ class ImportKnownChanges(object):
 
         self.threads=[]
         sys.exit(1)
-        
+
 
 def main():
     cnf = Config()
@@ -332,7 +329,7 @@ def main():
     ImportKnownChanges(num_threads)
 
 
-        
+
 
 if __name__ == '__main__':
     main()