Re: flatlist mode and ignored files

Joe Orton <[email protected]> Sun, 17 Jul 2005 22:56:48 +0100
Newsgroups gmane.comp.web.sitecopy
Message-ID <[email protected]>
Hi Eugene,

On Fri, Jul 08, 2005 at 04:05:10PM +0300, Eugene Tumachoff wrote:
> It seems there is a bug in the flatlist mode command.
> 
> I have a file ignored (ignore filename.ext) in the site settings.
> 'sitecopy -l' correctly shows these files in the square brackets and shows site
> status like "The remote site does not need updating". It's OK.
> But 'sitecopy -ll' command for some reason outputs:
> 
> sitestart|sitename
> siteend|changed

This looks like a bug, yes; thanks for the report.  The patch below 
should fix it; I'll apply it for the next version.

Index: src/sites.c
===================================================================
--- src/sites.c	(revision 660)
+++ src/sites.c	(working copy)
@@ -1347,7 +1347,7 @@
 	site_flatlist_items(f, site, file_deleted, "deleted");
     if (site->nummoved > 0)
 	site_flatlist_items(f, site, file_moved, "moved");
-    fprintf(f, "siteend|%s\n", site->local_is_different?"changed":"unchanged");
+    fprintf(f, "siteend|%s\n", site->remote_is_different?"changed":"unchanged");
 }
 
 void site_sock_progress_cb(void *userdata, off_t progress, off_t total)

_______________________________________________
sitecopy maillist  -  [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy