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

[Git][ftp-team/dak][master] LintianCheck: also write the tag file for lintian in text mode



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • daklib/checks.py
    ... ... @@ -872,7 +872,7 @@ class LintianCheck(Check):
    872 872
             except yaml.YAMLError as msg:
    
    873 873
                 raise Exception('Could not read lintian tags file {0}, YAML error: {1}'.format(tagfile, msg))
    
    874 874
     
    
    875
    -        with tempfile.NamedTemporaryFile() as temptagfile:
    
    875
    +        with tempfile.NamedTemporaryFile(mode="w+t") as temptagfile:
    
    876 876
                 os.fchmod(temptagfile.fileno(), 0o644)
    
    877 877
                 for tags in six.itervalues(lintiantags):
    
    878 878
                     for tag in tags:
    


  • Reply to: