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

Steve Beattie steve at nxnw.org
Tue Sep 9 23:51:53 UTC 2014


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}
-	$(MAKE) -C po ${NAME}.pot NAME=${NAME} SOURCES="${TOOLS} ${MODULES}"
+	$(MAKE) -C po ${NAME}.pot NAME=${NAME} SOURCES="${TOOLS} ${PYMODULES}"
 
 .PHONY: install
 install: ${MANPAGES} ${HTMLMANPAGES}
@@ -92,7 +93,7 @@ check_severity_db: /usr/include/linux/ca
 .PHONY: check
 .SILENT: check
 check: check_severity_db
-	for i in ${MODULES} ${PERLTOOLS} ; do \
+	for i in ${PERLTOOLS} ; do \
 		perl -c $$i || exit 1; \
 	done
 	tmpfile=$$(mktemp --tmpdir aa-pyflakes-XXXXXX); \
-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140909/739db8a3/attachment.pgp>


More information about the AppArmor mailing list