diff options
author | Michael Cummings <mcummings@gentoo.org> | 2005-06-05 13:41:34 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2005-06-05 13:41:34 +0000 |
commit | 26133aaa9513cea7bac18b9090a5d3d0ade1e474 (patch) | |
tree | ac71f06481005ab7fe5ab60f55afb4a5b8e003b4 /dev-lang | |
parent | Stable on ppc. (diff) | |
download | gentoo-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')
-rw-r--r-- | dev-lang/perl/ChangeLog | 5 | ||||
-rwxr-xr-x | dev-lang/perl/files/perl-cleaner | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/dev-lang/perl/ChangeLog b/dev-lang/perl/ChangeLog index 3f4b16fea6b7..2e7541cb74de 100644 --- a/dev-lang/perl/ChangeLog +++ b/dev-lang/perl/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-lang/perl # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.131 2005/05/30 13:41:04 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.132 2005/06/05 13:41:34 mcummings Exp $ + + 05 Jun 2005; Michael Cummings <mcummings@gentoo.org> files/perl-cleaner: + Bug 90502 - don't leave behind empty log files if nothing has been done 30 May 2005; Michael Cummings <mcummings@gentoo.org> files/perl-cleaner, perl-5.8.2-r4.ebuild, perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild, 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 |