]> 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 56d1fa8fe1f55601ec9600f4caba862543db7c7c..b26db754bde002aa384bd9f60f40013b48093b0c 100644 (file)
--- a/lfs/cdrom
+++ b/lfs/cdrom
@@ -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