[apparmor] utils "make check" fails - redefinition of unused 'ycp' from line 17

Steve Beattie steve at nxnw.org
Tue Nov 18 21:44:47 UTC 2014


On Tue, Nov 18, 2014 at 09:46:15PM +0100, Peter Maloney wrote:
> 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.

This is due to a bug in older versions of pyflakes (pyflakes in ubuntu
12.04 has this issue):

  https://github.com/kevinw/pyflakes/issues/13

I submitted a patch to work around it in the apparmor tree

  https://lists.ubuntu.com/archives/apparmor/2014-October/006640.html

based on the comment at

  https://github.com/kevinw/pyflakes/issues/13#issuecomment-2144121

but never received any feedback, and wasn't sure it was worth adding.

-- 
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/20141118/bbf892d4/attachment.pgp>


More information about the AppArmor mailing list