[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] check-archive: use `os.walk` instead of `os.path.walk`



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • dak/check_archive.py
    ... ... @@ -477,7 +477,7 @@ def check_files_not_symlinks():
    477 477
     ################################################################################
    
    478 478
     
    
    479 479
     
    
    480
    -def chk_bd_process_dir(unused, dirname, filenames):
    
    480
    +def chk_bd_process_dir(dirname, filenames):
    
    481 481
         for name in filenames:
    
    482 482
             if not name.endswith(".dsc"):
    
    483 483
                 continue
    
    ... ... @@ -498,7 +498,8 @@ def chk_bd_process_dir(unused, dirname, filenames):
    498 498
     def check_build_depends():
    
    499 499
         """ Validate build-dependencies of .dsc files in the archive """
    
    500 500
         cnf = Config()
    
    501
    -    os.path.walk(cnf["Dir::Root"], chk_bd_process_dir, None)
    
    501
    +    for dirpath, dirnames, filenames in os.walk(cnf["Dir::Root"]):
    
    502
    +        chk_bd_process_dir(dirpath, filenames)
    
    502 503
     
    
    503 504
     ################################################################################
    
    504 505
     
    


  • Reply to: