summaryrefslogtreecommitdiff
path: root/pygnulib
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2018-07-26 17:53:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-07-26 17:54:35 -0700
commit900ca5c0b092e50f9f17329feea3fbfe2b6e2139 (patch)
treef808d539c34bacffd2bce4f8a26e47fadf74c86b /pygnulib
parentc1599f2feb33dda51a23a3ac9e51a2e4bc98954d (diff)
downloadgnulib-900ca5c0b092e50f9f17329feea3fbfe2b6e2139.tar.gz
bootstrap, gnulib-tool: fix translations rsync
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.
Diffstat (limited to 'pygnulib')
-rw-r--r--pygnulib/GLImport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py
index a6d080912a..b495d2dfe4 100644
--- a/pygnulib/GLImport.py
+++ b/pygnulib/GLImport.py
@@ -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', '.',