]> git.deb.at Git - deb/packages.git/commitdiff
In the one instance where we touch() and know that the file exists, use utime() to...
authorPeter Palfrader <peter@palfrader.org>
Sat, 7 Feb 2009 22:38:35 +0000 (22:38 +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 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 {