[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] do not restore timestamp when popping patches
From: |
Greg Edwards |
Subject: |
[Quilt-dev] do not restore timestamp when popping patches |
Date: |
Mon, 18 Oct 2004 14:49:53 -0500 |
User-agent: |
Mutt/1.5.6i |
Time stamps are restored when patches are popped. This causes problems
when rebuilding after popping a patch since make may not think the file
has changed. Patch below just touches the newly linked file after backing
it up. This appears to take care of it for me.
Greg
Index: lib/backup-files.c
===================================================================
RCS file: /cvsroot/quilt/quilt/lib/backup-files.c,v
retrieving revision 1.10
diff -u -r1.10 backup-files.c
--- lib/backup-files.c 17 Oct 2004 20:42:30 -0000 1.10
+++ lib/backup-files.c 18 Oct 2004 19:49:35 -0000
@@ -128,8 +128,10 @@
{
int from_fd, to_fd, error = 1;
- if (link(from, to) == 0)
+ if (link(from, to) == 0) {
+ utime(to, NULL);
return 0;
+ }
if (errno != EXDEV && errno != EPERM && errno != EMLINK) {
fprintf(stderr, "Could not link file `%s' to `%s': %s\n",
from, to, strerror(errno));
- [Quilt-dev] do not restore timestamp when popping patches,
Greg Edwards <=