tazwok annotate chroot-scripts/clean-chroot @ rev 428

tazwok: packages may have no files but symlinks
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 07 08:52:51 2011 +0100 (2011-03-07)
parents
children 4e53898ed66c
rev   line source
gokhlayeh@315 1 #!/bin/sh
gokhlayeh@315 2
gokhlayeh@315 3 # Remove packages which was not in the chroot at creation time.
gokhlayeh@315 4 for pkg in $(ls /var/lib/tazpkg/installed); do
gokhlayeh@315 5 [ -d /var/lib/tazpkg/installed/$pkg ] || continue
gokhlayeh@315 6 [ "$(grep ^$pkg$ /var/lib/tazpkg/chroot-pkgs)" ] || tazpkg remove $pkg --auto
gokhlayeh@315 7 done
gokhlayeh@315 8 exit 0