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

[Git][ftp-team/dak][master] Do not deploy when unchecked or dinstall runs or archive is stopped



Title: GitLab

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

Commits:

1 changed file:

Changes:

  • config/deploy/deploy.functions
    1 1
     # -*- mode:sh -*-
    
    2 2
     
    
    3
    +function precronscript() {
    
    4
    +    # Do not run when those locks exist
    
    5
    +    if [[ -e ${LOCK_DAILY} ]] || [[ -e ${LOCK_STOP} ]]; then
    
    6
    +        exit 0;
    
    7
    +    fi
    
    8
    +
    
    9
    +    if ! lockfile -r 64 ${LOCK_UNCHECKED} 2> /dev/null; then
    
    10
    +        exit 0
    
    11
    +    fi
    
    12
    +    TMPFILES="${TMPFILES} ${LOCK_UNCHECKED}"
    
    13
    +}
    
    14
    +
    
    3 15
     function fetch_updates() {
    
    4 16
         cd ${masterdir}/
    
    5 17
         local beforefetch=$(git rev-parse HEAD)
    


  • Reply to: