From: Peter Palfrader Date: Sat, 7 Feb 2009 22:38:35 +0000 (+0000) Subject: In the one instance where we touch() and know that the file exists, use utime() to... X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=fa0e80560d8fc055c1d88997ce47ae01cfe3e8f6;p=deb%2Fpackages.git In the one instance where we touch() and know that the file exists, use utime() to update the timestamp Signed-off-by: Frank Lichtenheld --- diff --git a/bin/extract_files b/bin/extract_files index 49b489f..875b7de 100755 --- a/bin/extract_files +++ b/bin/extract_files @@ -235,7 +235,7 @@ sub to_update { if ($config_data->{structure} == PKGPOOL) { my $dir = "$target/".pkg_pool_directory( $pkg_data ); if (!$force && -d $dir && -f "$dir/log") { - touch("$dir/log") + (utime(undef,undef,"$dir/log") == 1) or do_warning( "touch of $dir/log failed" ); return 0; } else {