tazwok view chroot-scripts/clean-chroot @ rev 529

tazwok: Fixed making new receipts. Add $CONFIGURE_ARGS back in. Fixed gen-wok-db to build wok-depends.txt with just $WOK. This is in case there is nothing in packages.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon May 23 06:24:41 2011 +0000 (2011-05-23)
parents
children 4e53898ed66c
line source
1 #!/bin/sh
3 # Remove packages which was not in the chroot at creation time.
4 for pkg in $(ls /var/lib/tazpkg/installed); do
5 [ -d /var/lib/tazpkg/installed/$pkg ] || continue
6 [ "$(grep ^$pkg$ /var/lib/tazpkg/chroot-pkgs)" ] || tazpkg remove $pkg --auto
7 done
8 exit 0