[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coldsync-hackers] Be more easy with installs




Hi there,

I use plucker to compile a PDB of my favorite web news channels.

The problem is: The the creation time (inside the PDB) is
ignored, so coldsync will not replace. The policy about this is
not that nice anyway.

This patch will allow to replace files on the palm with the ones
in "${HOME}/.palm/install". I use this since coldsync 2.1.3.

Regards

Ingo Oeser

PS: This time WITH patch attached ;-)

-- 
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth
     >>>   4. Chemnitzer Linux-Tag - 09.+10. Maerz 2002 <<<
              http://www.tu-chemnitz.de/linux/tag/
--- coldsync-2.2.5/src/install.c.old	Sun Oct  7 00:12:45 2001
+++ coldsync-2.2.5/src/install.c	Thu Dec 13 19:54:21 2001
@@ -554,7 +554,9 @@
 					pdb->modnum);
 			}
 
-			if (pdb->modnum <= dbinfo->modnum)
+			if (pdb->ctime <= time_dlp2palmtime(&dbinfo->ctime) 
+                           && pdb->mtime <= time_dlp2palmtime(&dbinfo->mtime) 
+                           && pdb->modnum <= dbinfo->modnum)
 			{
 				SYNC_TRACE(4)
 					fprintf(stderr, "This isn't a new version\n");