]> Savannah Git Hosting - gnulib.git/commit
bootstrap, gnulib-tool: correct the translations wget command
authorBenno Schulenberg <bensberg@telfort.nl>
Sun, 7 Oct 2018 16:20:43 +0000 (18:20 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Oct 2018 17:16:24 +0000 (19:16 +0200)
commit7d73965d906b190c6affcbf64aa76f147727f6c3
treea15c0315dc2b72e15da2b0f7c87db44ff3d96843
parent3ea3c45d037aef4d0ab740447c47ad3c69507194
bootstrap, gnulib-tool: correct the translations wget command

Using the -np (--no-parent) option doesn't prevent wget from
traversing the given URL to a default depth of 5, and since
the domain directory contains a href="/latest/" link, this
means that wget searches through all domains anyway and will
also download PO files that are meant for other packages.
When getting the PO files for the nano domain, for example,
you will end up with af.po and ast.po (and many others) too,
but there are no African nor Asturian translations for nano.

So, use the --level option instead, to stop wget from looking
any further than the given URL.

* build-aux/bootstrap (po_download_command_format2): Restrict
recursion to a single level.
* gnulib-tool (func_import): Likewise.
* pygnulib/GLImport.py (GLImport.execute): Likewise.
build-aux/bootstrap
gnulib-tool
pygnulib/GLImport.py