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

[Git][ftp-team/dak][lockfile] 2 commits: Don't try to remove lock files any more



Title: GitLab

Bastian Blank pushed to branch lockfile at Debian FTP Team / dak

Commits:

3 changed files:

Changes:

  • config/debian-security/weekly.functions
    1 1
     # -*- mode:sh -*-
    
    2 2
     
    
    3
    -function precronscript() {
    
    4
    -    # only run one cron.unchecked
    
    5
    -    if ! lockfile -r8 ${LOCK_UNCHECKED} 2> /dev/null; then
    
    6
    -        # log "aborting cron.unchecked because $LOCK_UNCHECKED has already been locked"
    
    7
    -        exit 0
    
    8
    -    fi
    
    9
    -    TMPFILES="${TMPFILES} ${LOCK_UNCHECKED}"
    
    10
    -}
    
    11
    -
    
    12 3
     function update_releases() {
    
    13 4
         # Update Release for main archive
    
    14 5
         dak generate-releases -a security >/dev/null
    

  • config/debian-security/weekly.tasks
    1
    -# FUNC                 ARGS                       TIME                       ERR     BG
    
    2
    -update_releases        none                       none                       true    false
    
    3
    -runcronscript          mirror                     none                       true    true
    
    4
    -linkmorgue             none                       none                       false   true
    1
    +# FUNC                 ARGS                       TIME                       ERR       BG
    
    2
    +LOCK                   UNCHECKED                  1200                       exclusive false
    
    3
    +update_releases        none                       none                       true      false
    
    4
    +runcronscript          mirror                     none                       true      true
    
    5
    +linkmorgue             none                       none                       false     true

  • config/debian/monthly.functions
    ... ... @@ -25,7 +25,6 @@ function archivequeuedone() {
    25 25
     }
    
    26 26
     
    
    27 27
     function rotatereports() {
    
    28
    -    TMPFILES="${TMPFILES} ${LOCK_UNCHECKED}"
    
    29 28
         for dir in ${queuedir}/{.,p-u-new,o-p-u-new} /srv/backports-master.debian.org/queue/policy; do
    
    30 29
             cd ${dir}
    
    31 30
             mv REPORT REPORT.${OLDDATE}
    


  • Reply to: