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

[Git][ftp-team/dak][master] 6 commits: Use xz compression for Translation indices in unstable/experimental



Title: GitLab

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

Commits:

3 changed files:

Changes:

  • config/debian/dinstall.functions
    ... ... @@ -73,7 +73,7 @@ function i18n1() {
    73 73
                     for dir in ${extimportdists}; do
    
    74 74
                         if [[ -d dists/${dir}/  ]]; then
    
    75 75
                             cd dists/${dir}/main/i18n
    
    76
    -                        rsync -aq --delete --delete-after --exclude by-hash --exclude Translation-en.bz2 --exclude "Translation-*.diff/" . ${ftpdir}/dists/${dir}/main/i18n/.
    
    76
    +                        rsync -aq --delete --delete-after --exclude by-hash --exclude "Translation-en.*" --exclude "Translation-*.diff/" . ${ftpdir}/dists/${dir}/main/i18n/.
    
    77 77
                         fi
    
    78 78
                         cd ${scriptdir}/i18nsync
    
    79 79
                     done
    

  • scripts/debian/ddtp-i18n-check.sh
    ... ... @@ -104,7 +104,7 @@ unset TEMP_WORK_DIR
    104 104
     # If it's trapped, something bad happened.
    
    105 105
     trap_exit () {
    
    106 106
     	rm -rf "$TMP_WORK_DIR"
    
    107
    -	rm -f "$dists_parent_dir"/dists/*/main/i18n/Translation-*.bz2
    
    107
    +	rm -f "$dists_parent_dir"/dists/*/main/i18n/Translation-*
    
    108 108
     	rm -f "$dists_parent_dir"/dists/*/main/i18n/Index
    
    109 109
     	exit 1
    
    110 110
     }
    

  • scripts/debian/generate-i18n-Index
    ... ... @@ -12,6 +12,7 @@
    12 12
     
    
    13 13
     set -e
    
    14 14
     set -u
    
    15
    +set -o nullglob
    
    15 16
     export LC_ALL=C
    
    16 17
     
    
    17 18
     usage () {
    
    ... ... @@ -43,7 +44,7 @@ trap trap_exit EXIT HUP INT QUIT TERM
    43 44
     exec 3>Index
    
    44 45
     
    
    45 46
     echo "SHA1:" >&3
    
    46
    -for file in Translation-*.bz2 ; do
    
    47
    +for file in Translation-*.bz2 Translation-*.xz ; do
    
    47 48
     	sha=$(sha1sum "$file"); sha="${sha%% *}"
    
    48 49
     	size=$(stat -c %s "${file}")
    
    49 50
     	printf ' %s % 7s %s\n' "$sha" "$size" "$file" >&3
    


  • Reply to: