3 @@ -47,6 +47,19 @@ pkg_appears_sane() {
7 + cvs_dirs=`find . -name 'CVS'`
8 + if [ -n "$cvs_dirs" ]; then
9 + if [ "$noclean" = "1" ]; then
10 + echo "*** Warning: The following CVS directories where found.
11 +You probably want to remove them: " >&2
15 + echo "*** Removing the following files: $cvs_dirs"
20 tilde_files=`find . -name '*~'`
21 if [ -n "$tilde_files" ]; then
22 if [ "$noclean" = "1" ]; then
23 @@ -134,8 +147,12 @@ You probably want to chown these to a sy
25 for script in $CONTROL/preinst $CONTROL/postinst $CONTROL/prerm $CONTROL/postrm; do
26 if [ -f $script -a ! -x $script ]; then
27 + if [ "$noclean" = "1" ]; then
28 echo "*** Error: package script $script is not executable" >&2