From 835b8bc9691415fc0d3cb8ee0738558d8627aeef Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 9 Sep 2017 19:48:53 +0300 Subject: [PATCH] [backport] gnulib-tool: fix incompatibility with autopoint 0.18.2 commit 8e858e6d77dd239e9102626b292519eae170679a Author: Paul Eggert Date: Sat Jan 5 08:03:10 2013 -0800 gnulib-tool: fix incompatibility with autopoint 0.18.2 * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line. Problem reported by Tom G. Christensen in . --- pygnulib/generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pygnulib/generator.py b/pygnulib/generator.py index 148920df7b..e8c6a23101 100644 --- a/pygnulib/generator.py +++ b/pygnulib/generator.py @@ -237,6 +237,10 @@ class AutoconfSnippet(Generator): src = "AM_GNU_GETTEXT([external])" dst = "dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.'" snippet = snippet.replace(src, dst) + else: + # Don't indent AM_GNU_GETTEXT_VERSION line, as that confuses + # autopoint through at least GNU gettext version 0.18.2. + snippet = snippet.lstrip() lines = (_ for _ in snippet.split("\n") if _) for line in lines: yield line -- 2.39.5