]> Savannah Git Hosting - gnulib.git/commitdiff
bootstrap, gnulib-tool: fix translations rsync
authorColin Watson <cjwatson@debian.org>
Fri, 27 Jul 2018 00:53:37 +0000 (17:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Jul 2018 00:54:35 +0000 (17:54 -0700)
Previously, we created files such as $pobase/Makefile.in.in and then the
subsequent rsync would immediately delete them.

* build-aux/bootstrap (po_download_command_format): Avoid deleting
non-.po files in target directory when rsyncing translations.
* gnulib-tool (func_import): Likewise.
* pygnulib/GLImport.py (GLImport.execute): Likewise.

build-aux/bootstrap
gnulib-tool
pygnulib/GLImport.py

index 6f74a028165d04ac05de3e62c7467ef25efbe6b1..fa9d7c94afbc690dbb5df73f437e756819d52a8f 100755 (executable)
@@ -168,7 +168,7 @@ bootstrap_epilogue() { :; }
 # options because the latest/%s directory and the .po files within are
 # all symlinks.
 po_download_command_format=\
-"rsync --delete --exclude '*.s1' -Lrtvz \
+"rsync --include '*.po' --exclude '*' -Lrtvz \
  'translationproject.org::tp/latest/%s/' '%s'"
 
 # Fallback for downloading .po files (if rsync fails).
index ebe4443fd048a93cebfdb7b78c7ef7d97345f6fd..e4a8f834c81a72b8742995aea2bcaea8c078fddf 100755 (executable)
@@ -5422,7 +5422,7 @@ s,//*$,/,'
        && { # Prefer rsync over wget if it is available, since it consumes
             # less network bandwidth, due to compression.
             if type rsync 2>/dev/null | grep / > /dev/null; then
-              rsync --delete --exclude "*.s1" -Lrtz "${TP_RSYNC_URI}gnulib/" . && return
+              rsync --delete --include "*.po" --exclude "*" -Lrtz "${TP_RSYNC_URI}gnulib/" . && return
             fi
 
             wget --no-verbose --mirror -nd -np  -A.po -P . "${TP_URL}gnulib/"
index a6d080912ae2a48838d35e1be017a872cdf5b9de..b495d2dfe42ce4a5c7b15da495f21fc27c69c8f1 100644 (file)
@@ -1207,7 +1207,7 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix
                 cmd = 'type rsync 2>/dev/null | grep / > /dev/null'
                 result = sp.call(cmd, shell=True)
                 if result == 0:  # use rsync
-                    args = ['rsync', '--delete', '--exclude', '*.s1', '-Lrtz', '%sgnulib/' % TP_RSYNC_URI, '.']
+                    args = ['rsync', '--include', '*.po', '--exclude', '*', '-Lrtz', '%sgnulib/' % TP_RSYNC_URI, '.']
                     result = sp.call(args, shell=True)
                 if result != 0:  # use wget
                     args = ['wget', '--no-verbose', '--mirror', '-nd', '-np', '-A.po', '-P', '.',