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

tazwok: fix an error which cause cookorder to be regenerated even if unneeded
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Apr 04 03:02:01 2011 +0200 (2011-04-04)
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