The following commit has been merged in the master branch:
commit fa0e80560d8fc055c1d88997ce47ae01cfe3e8f6
Author: Peter Palfrader <pe...@palfrader.org>
Date:   Sat Feb 7 22:38:35 2009 +0000

    In the one instance where we touch() and know that the file exists, use 
utime() to update the timestamp
    
    Signed-off-by: Frank Lichtenheld <fr...@lichtenheld.de>

diff --git a/bin/extract_files b/bin/extract_files
index 49b489f..875b7de 100755
--- a/bin/extract_files
+++ b/bin/extract_files
@@ -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 {

-- 
APT Archive Web-Frontend (Alioth repository)


-- 
To UNSUBSCRIBE, email to debian-www-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to