Bug#105750: Retitle + patch
retitle 105750 [DPKG-SOURCE] touch all patched files to avoid race conditions
thanks
This was the original bugreport title; a patch is provided.
Denis
--- dpkg-source.orig 2003-09-20 03:06:39.000000000 +0200
+++ dpkg-source 2003-09-21 21:51:32.000000000 +0200
@@ -700,8 +699,11 @@
$? && subprocerr("patch");
&reapgzip;
+ my $now = time;
for $fn (keys %filepatched) {
- $ftr= "$newdirectory/".substr($fn,length($expectprefix)+1).".dpkg-orig";
+ $ftr= "$newdirectory/".substr($fn,length($expectprefix)+1);
+ utime($now, $now, $ftr) || &syserr("cannot change timestamp for $ftr");
+ $ftr.= ".dpkg-orig";
unlink($ftr) || &syserr("remove patch backup file $ftr");
}
Reply to: