[apparmor] utils "make check" fails - redefinition of unused 'ycp' from line 17
Peter Maloney
peter.maloney at brockmann-consult.de
Tue Nov 18 20:46:15 UTC 2014
utils "make check" fails
apparmor/yasti.py:20: redefinition of unused 'ycp' from line 17
This patch fixes it for me. Should it also handle the failure case? I
don't really know.
=== modified file 'utils/apparmor/yasti.py'
--- utils/apparmor/yasti.py 2014-02-15 06:52:31 +0000
+++ utils/apparmor/yasti.py 2014-11-18 20:16:01 +0000
@@ -13,11 +13,13 @@
# ----------------------------------------------------------------------
import re
import sys
+ycp = None
try:
- import ycp
+ import ycp_if_it_works
+ ycp = ycp_if_it_works
except ImportError:
# ycp isn't found everywhere.
- ycp = None
+ pass
from apparmor.common import error, DebugLogger
More information about the AppArmor
mailing list