tazwok diff chroot-scripts/clean-chroot @ rev 523

Fixed python compiled files to be removed after files.list is made. Added perl_compiled_files_remove function to remove these files before files.list is made since these are only made when compiling.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 14 17:53:42 2011 +0000 (2011-05-14)
parents
children 4e53898ed66c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/chroot-scripts/clean-chroot	Sat May 14 17:53:42 2011 +0000
     1.3 @@ -0,0 +1,8 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +# Remove packages which was not in the chroot at creation time.
     1.7 +for pkg in $(ls /var/lib/tazpkg/installed); do
     1.8 +	[ -d /var/lib/tazpkg/installed/$pkg ] || continue	
     1.9 +	[ "$(grep ^$pkg$ /var/lib/tazpkg/chroot-pkgs)" ] || tazpkg remove $pkg --auto
    1.10 +done
    1.11 +exit 0