From: Akim Demaille Date: Tue, 9 Sep 2003 12:27:28 +0000 (+0000) Subject: * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave X-Git-Tag: Release-1-7b~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9293885dad0268629fe840d3c3f2a1f65de38b5f;p=thirdparty%2Fautomake.git * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave trailing files. --- diff --git a/ChangeLog b/ChangeLog index 378c30ca5..b78e67afa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-09-09 Akim Demaille + + * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave + trailing files. + 2003-09-07 Alexandre Duret-Lutz Changes to m4_included files should also cause aclocal.m4 to change. diff --git a/lib/Automake/FileUtils.pm b/lib/Automake/FileUtils.pm index c860b65f9..0050120d2 100644 --- a/lib/Automake/FileUtils.pm +++ b/lib/Automake/FileUtils.pm @@ -153,6 +153,8 @@ sub update_file ($$) { # File didn't change, so don't update its mod time. msg 'note', "`$to' is unchanged"; + unlink ($from) + or fatal "cannot not remove $from: $!"; return }