]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: follow gnulib-tool changes, part 10
authorBruno Haible <bruno@clisp.org>
Fri, 8 Sep 2017 23:36:16 +0000 (01:36 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 9 Sep 2017 14:29:00 +0000 (16:29 +0200)
Follow gnulib-tool change
2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
gnulib-tool: Use same options as build-aux/bootstrap to download PO files.

pygnulib/GLImport.py

index 125ee9d2b7dd4ed1f1396d408437eeede894ad36..4352a7ec550b969a842c19987807ea9488610b67 100644 (file)
@@ -1207,10 +1207,10 @@ 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', '-Lrtz', '%sgnulib/' % TP_RSYNC_URI, '.']
+                    args = ['rsync', '--delete', '--exclude', '*.s1', '-Lrtz', '%sgnulib/' % TP_RSYNC_URI, '.']
                     result = sp.call(args, shell=True)
                 if result != 0:  # use wget
-                    args = ['wget', '--no-verbose', '-r', '-l1', '-nd', '-np', '-A.po',
+                    args = ['wget', '--no-verbose', '--mirror', '-nd', '-np', '-A.po', '-P', '.',
                             '%sgnulib/' % TP_URL]
                     sp.call(args, shell=True)
             else:  # if self.config['dryrun']