From: Peter Palfrader Date: Sat, 7 Feb 2009 22:39:13 +0000 (+0000) Subject: No point in checking if $dir exists and is a dir if we check if $dir/log is a file... X-Git-Url: https://git.deb.at/w?p=deb%2Fpackages.git;a=commitdiff_plain;h=ebc03a591841ada03ff121608e8437c193fa8cfd No point in checking if $dir exists and is a dir if we check if $dir/log is a file in the next clause Signed-off-by: Frank Lichtenheld --- diff --git a/bin/extract_files b/bin/extract_files index 875b7de..269078c 100755 --- a/bin/extract_files +++ b/bin/extract_files @@ -234,7 +234,7 @@ sub to_update { if ($config_data->{structure} == PKGPOOL) { my $dir = "$target/".pkg_pool_directory( $pkg_data ); - if (!$force && -d $dir && -f "$dir/log") { + if (!$force && -f "$dir/log") { (utime(undef,undef,"$dir/log") == 1) or do_warning( "touch of $dir/log failed" ); return 0;