]> git.deb.at Git - deb/packages.git/commitdiff
No point in checking if $dir exists and is a dir if we check if $dir/log is a file...
authorPeter Palfrader <peter@palfrader.org>
Sat, 7 Feb 2009 22:39:13 +0000 (22:39 +0000)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 7 Feb 2009 23:06:12 +0000 (00:06 +0100)
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
bin/extract_files

index 875b7dee7a53c08b584afcc8bc470fc3c5951f92..269078c0e66964eff6aa8da3c7837ffad350e144 100755 (executable)
@@ -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;