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

[Git][ftp-team/dak][include-tasks] Declare all variables in global scope



Title: GitLab

Bastian Blank pushed to branch include-tasks at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • config/deploy/deploy.variables
    ... ... @@ -3,10 +3,10 @@
    3 3
     # Checking for DB updates, only really done on some hosts
    
    4 4
     case ${HOSTNAME} in
    
    5 5
         fasolo|seger)
    
    6
    -        declare -r NEEDDB="yes, we need to check for DB updates"
    
    6
    +        declare -gr NEEDDB="yes, we need to check for DB updates"
    
    7 7
             ;;
    
    8 8
         *)
    
    9
    -        declare -r NEEDDB=""
    
    9
    +        declare -gr NEEDDB=""
    
    10 10
     esac
    
    11 11
     # Whats the last db update revision before update
    
    12 12
     OLDDBVER=0
    
    ... ... @@ -14,16 +14,16 @@ OLDDBVER=0
    14 14
     NEWDBVER=0
    
    15 15
     
    
    16 16
     # Where is our code
    
    17
    -declare -r GITURL="https://salsa.debian.org/ftp-team/dak.git"
    
    17
    +declare -gr GITURL="https://salsa.debian.org/ftp-team/dak.git"
    
    18 18
     
    
    19 19
     # Where to send error log messages to
    
    20
    -declare -r MAILTO=${MAILTO:-"ftpmaster@debian.org"}
    
    20
    +declare -gr MAILTO=${MAILTO:-"ftpmaster@debian.org"}
    
    21 21
     
    
    22 22
     # Store at which DB update we are in live system
    
    23 23
     if [[ -n ${NEEDDB} ]]; then
    
    24 24
         OLDDBVER=$(ls -1 ${masterdir}/dak/dakdb/update*py|sort -V|tail -n 1)
    
    25 25
         OLDDBVER=${OLDDBVER##*update}
    
    26
    -    declare -r OLDDBVER=${OLDDBVER%%.py}
    
    26
    +    declare -gr OLDDBVER=${OLDDBVER%%.py}
    
    27 27
     fi
    
    28 28
     
    
    29 29
     # GPG options for verifying stuff
    
    ... ... @@ -31,7 +31,7 @@ DEFGPGOPT="--no-default-keyring --batch --no-tty --no-options --exit-on-status-w
    31 31
     
    
    32 32
     # Which key is allowed to sign commits for a deploy
    
    33 33
     # Only keys count, values are just for fun.
    
    34
    -declare -A DEPLOY_KEYS=(
    
    34
    +declare -gA DEPLOY_KEYS=(
    
    35 35
       ["309911BEA966D0613053045711B4E5FF15B0FD82"]="mhy"
    
    36 36
       ["80E976F14A508A48E9CA3FE9BC372252CA1CF964"]="ansgar"
    
    37 37
       ["FBFABDB541B5DC955BD9BA6EDB16CF5BB12525C4"]="joerg"
    


  • Reply to: