[apparmor] [patch] Add all __pycache__ directories below utils/ to .bzrignore

Christian Boltz apparmor at cboltz.de
Thu Apr 2 20:04:51 UTC 2015


Hello,

Am Donnerstag, 2. April 2015 schrieb Steve Beattie:
> On Thu, Apr 02, 2015 at 12:23:19PM +0200, Christian Boltz wrote:
> > this patch adds all __pycache__ directories below utils/ to
> > .bzrignore.
> > 
> > Luckily .bzrignore supports the ** notation ;-)
> > 
> > [ bzrignore-pycache.diff ]
> > 
> > === modified file '.bzrignore'
> > --- .bzrignore  2013-01-14 15:11:58 +0000
> > +++ .bzrignore  2015-04-02 10:17:28 +0000
> > @@ -165,4 +165,4 @@
> > 
> >  tests/regression/apparmor/unlink
> >  tests/regression/apparmor/xattrs
> >  tests/regression/apparmor/coredump
> > 
> > -./utils/apparmor/__pycache__
> > +utils/**/__pycache__/
> 
> Let's just make this:
> 
> +**/__pycache__/
> 
> as we have other python test scripts that get run throughout the tree.

Good idea. Here's the updated patch:


[ bzrignore-pycache.diff ]

=== modified file '.bzrignore'
--- .bzrignore  2013-01-14 15:11:58 +0000
+++ .bzrignore  2015-04-02 10:17:28 +0000
@@ -165,4 +165,4 @@
 tests/regression/apparmor/unlink
 tests/regression/apparmor/xattrs
 tests/regression/apparmor/coredump
-./utils/apparmor/__pycache__
+**/__pycache__/



BTW: .bzrignore contains

parser/common
changehat/mod_apparmor/common
changehat/pam_apparmor/common
changehat/tomcat_apparmor/common
utils/common

IIRC the Makefiles no longer need or create the 'common' symlink, so 
should we remove those from .bzrignore?


Regards,

Christian Boltz
-- 
Bei 10.000 Mails pro Tag dreht der Server 95% der Zeit nur Däumchen 
oder zählt Elektronenschäfchen. [Sandy Drobic in postfixbuch-users]




More information about the AppArmor mailing list