From ebc03a591841ada03ff121608e8437c193fa8cfd Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 7 Feb 2009 22:39:13 +0000 Subject: [PATCH] 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 --- bin/extract_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2