[apparmor] [patch] utils: search python modules for translatable strings

Christian Boltz apparmor at cboltz.de
Wed Sep 10 11:59:32 UTC 2014


Hello,

Am Dienstag, 9. September 2014 schrieb Steve Beattie:
> In the conversion from perl to python, it got overlooked to add the
> python-apparmor modules to the set of things to search for
> translatable strings in. This patch addresses the issue.
> 
> Signed-off-by: Steve Beattie <steve at nxnw.org>
> ---
>  utils/Makefile |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> Index: b/utils/Makefile
> ===================================================================
> --- a/utils/Makefile
> +++ b/utils/Makefile
> @@ -32,6 +32,7 @@ PYTOOLS = aa-easyprof aa-genprof aa-logp
>  	  aa-status aa-unconfined
>  TOOLS = ${PERLTOOLS} ${PYTOOLS} aa-decode
>  PYSETUP = python-tools-setup.py
> +PYMODULES = $(wildcard apparmor/*.py)
> 
>  MANPAGES = ${TOOLS:=.8} logprof.conf.5
> 
> @@ -46,7 +47,7 @@ CONFDIR=${DESTDIR}/etc/apparmor
>  PYPREFIX=/usr
> 
>  po/${NAME}.pot: ${TOOLS}

po/${NAME}.pot should also depend on PYMODULES - please change the line 
to:

po/${NAME}.pot: ${TOOLS} ${PYMODULES}

> -	$(MAKE) -C po ${NAME}.pot NAME=${NAME} SOURCES="${TOOLS} 
${MODULES}"
> +	$(MAKE) -C po ${NAME}.pot NAME=${NAME} SOURCES="${TOOLS}
> ${PYMODULES}"

With the above change,
Acked-by: Christian Boltz <apparmor at cboltz.de>


Regards,

Christian Boltz
-- 
What? You mean you don't install betas on production machines? 
Come on Carlos, where's your sense of adventure? ;-)
[Mike in opensuse-factory]




More information about the AppArmor mailing list