]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/cdrom
python3: exclude __pycache__ from iso, core and packages
[ipfire-2.x.git] / lfs / cdrom
index c33919c386a8e369bf4112a261dce44cbd8a492c..b26db754bde002aa384bd9f60f40013b48093b0c 100644 (file)
--- a/lfs/cdrom
+++ b/lfs/cdrom
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2013  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -162,7 +162,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        # Compress root filesystem
        # Reason for this tar+untar+tar is removing of entries listed two or more in src/ROOTFILES
-       tar -c --exclude='#*' --exclude='proc/*' --exclude='dev/pts/*' --exclude='tmp/ROOTFILES' \
+       tar -c --exclude='#*' --exclude='proc/*' --exclude='dev/pts/*' \
+               --exclude='__pycache__' --exclude='tmp/ROOTFILES' \
                -C / --files-from=/tmp/ROOTFILES -f /$(SNAME).tar
        rm -f /tmp/ROOTFILES
        tar -x -C /tmp -f /$(SNAME).tar