[Dirvish] Dirvish Expiry problem

fsdfds fdsf vademouse at hotmail.com
Fri Jan 18 16:43:44 UTC 2008


Hi,

In what file did you make this change:
> The way I've worked around this in the past is a simple patch:
> 
> --- dirvish.orig        2006-10-15 00:00:00.000000000 +0200
> +++ dirvish   2006-10-15 00:42:04.000000000 +0200
> @@ -637,6 +637,7 @@
> 	open (STDOUT, ">$log_temp");
>  
> 	$status{code} = (system(@cmd) >> 8) & 255;
> +	$status{code} = 0 if ($status{code} == 24);
>  
> 	open (STDERR, ">&ERRHOLD");
> 	open (STDOUT, ">&OUTHOLD");



> Date: Fri, 18 Jan 2008 13:24:23 +0100
> From: paul at debian.org
> To: dirvish at dirvish.org
> Subject: Re: [Dirvish] Dirvish Expiry problem
> 
> On Fri 18 Jan 2008, Paul Slootman wrote:
> > On Fri 18 Jan 2008, Paul Slootman wrote:
> > > > 
> > > > Status: warning (24) -- file vanished on sender
> > > 
> > > That's not in the summary file "fsdfds fdsf" showed...
> 
> > Oops, I didn't scroll beyond the blank line :-(  sorry....
> 
> The way I've worked around this in the past is a simple patch:
> 
> --- dirvish.orig        2006-10-15 00:00:00.000000000 +0200
> +++ dirvish   2006-10-15 00:42:04.000000000 +0200
> @@ -637,6 +637,7 @@
> 	open (STDOUT, ">$log_temp");
>  
> 	$status{code} = (system(@cmd) >> 8) & 255;
> +	$status{code} = 0 if ($status{code} == 24);
>  
> 	open (STDERR, ">&ERRHOLD");
> 	open (STDOUT, ">&OUTHOLD");
> 
> This should perhaps be coupled to an option...
> 
> Of course, another approach is to modify dirvish-expire, so that the
> summary file accurately reflects what happened:
> 
> --- dirvish-expire.orig 2006-07-27 18:25:25.000000000 +0200
> +++ dirvish-expire      2008-01-18 13:21:08.915730223 +0100
> @@ -226,7 +226,7 @@
>  
>  		if ($status == 0)
>  		{
> -			$$summary{Status} =~ /^success/ && -d ($path . '/tree')
> +			$$summary{Status} =~ /^(success|warning \(24\))/ && -d ($path . '/tree')
>  				and ++$unexpired{$$summary{vault}}{$$summary{branch}};
>  			return;
>  		}
> 
> (untested)
> 
> 
> Paul Slootman
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish

_________________________________________________________________
Windows Vista + Windows Live. Astu digitaaliseen maailmaan.
http://get.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dirvish.org/pipermail/dirvish/attachments/20080118/66dbf086/attachment.html 


More information about the Dirvish mailing list