98-clean-chroot: check existence of aptitude binary via $ROOTCMD.
authorMichael Prokop <mika@grml.org>
Sun, 10 Jul 2011 13:53:18 +0000 (15:53 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 10 Jul 2011 13:53:18 +0000 (15:53 +0200)
/usr/bin/aptitude might point to /etc/alternatives/aptitude which
points to e.g. /usr/bin/aptitude-curses. When testing for
precense of /usr/bin/aptitude the test might fail because test(1)
dereferences symbolic links. So make sure to check existence of
aptitude binary inside $target using $ROOTCMD.


No differences found