]> git.deb.at Git - deb/packages.git/blobdiff - bin/extract_files
In the one instance where we touch() and know that the file exists, use utime() to...
[deb/packages.git] / bin / extract_files
index 49b489f24d1b8153bc9d56462fe7650225f30e8e..875b7dee7a53c08b584afcc8bc470fc3c5951f92 100755 (executable)
@@ -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 {