summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2005-06-05 13:41:34 +0000
committerMichael Cummings <mcummings@gentoo.org>2005-06-05 13:41:34 +0000
commit26133aaa9513cea7bac18b9090a5d3d0ade1e474 (patch)
treeac71f06481005ab7fe5ab60f55afb4a5b8e003b4 /dev-lang/perl/files
parentStable on ppc. (diff)
downloadgentoo-2-26133aaa9513cea7bac18b9090a5d3d0ade1e474.tar.gz
gentoo-2-26133aaa9513cea7bac18b9090a5d3d0ade1e474.tar.bz2
gentoo-2-26133aaa9513cea7bac18b9090a5d3d0ade1e474.zip
Bug 90502 - don't leave behind empty log files if nothing has been done
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-lang/perl/files')
-rwxr-xr-xdev-lang/perl/files/perl-cleaner12
1 files changed, 9 insertions, 3 deletions
diff --git a/dev-lang/perl/files/perl-cleaner b/dev-lang/perl/files/perl-cleaner
index 5831c5e02424..abdc4783872c 100755
--- a/dev-lang/perl/files/perl-cleaner
+++ b/dev-lang/perl/files/perl-cleaner
@@ -46,9 +46,15 @@ function postclean {
done
- echo
- echo "For a complete log, please read $LOG"
- echo
+ if [ -s $LOG ]; then
+ echo
+ echo "For a complete log, please read $LOG"
+ echo
+ else
+ if [ -f $LOG ]; then
+ rm -f $LOG
+ fi
+ fi
}
# This is to clean out the old .ph files generated in our last perl install