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

[Git][ftp-team/dak][master] Ensure lintian runs with a tempdir, closes: #1



Title: GitLab

Joerg Jaspert pushed to branch master at Debian FTP Team / dak

Commits:

  • d03125f2
    by Joerg Jaspert at 2025-08-16T15:31:02+02:00
    Ensure lintian runs with a tempdir, closes: #1
    
    We should always have this config value, but just in case fallback to
    TMPDIR env var or /tmp
    

1 changed file:

Changes:

  • daklib/checks.py
    ... ... @@ -1146,10 +1146,11 @@ class LintianCheck(Check):
    1146 1146
     
    
    1147 1147
                 changespath = os.path.join(upload.directory, changes.filename)
    
    1148 1148
     
    
    1149
    +            tempdir = cnf.get("Dir::TempPath") or os.environ.get("TMPDIR", "/tmp")
    
    1149 1150
                 cmd = []
    
    1150 1151
                 user = cnf.get("Dinstall::UnprivUser") or None
    
    1151 1152
                 if user is not None:
    
    1152
    -                cmd.extend(["sudo", "-H", "-u", user])
    
    1153
    +                cmd.extend(["sudo", "-H", "-u", user, "TMPDIR={0}".format(tempdir)])
    
    1153 1154
                 cmd.extend(
    
    1154 1155
                     [
    
    1155 1156
                         "/usr/bin/lintian",
    


  • Reply to: