Paul Slootman <[EMAIL PROTECTED]> wrote:
> When running upgrade-config.pl on a conf file that's already 2.6
> (but e.g. not 2.6d), any existing " age = " lines (in the Purge
> section) are removed:
> 
> --- wwwoffle.conf.old      Wed Aug 15 14:24:43 2001
> +++ wwwoffle.conf  Wed Aug 15 14:24:50 2001
> @@ -1069,14 +1069,8 @@
>  # Options re-sorted for WWWOFFLE version 2.6d by wwwoffle-upgrade-config
>  # Now the "first match" is used, previously it was "longest match".
>  
> -# <*://bar.foo.com/> age = 14
> -# <*://foo.bar.com/> age = -1
> -# <*://foo.com/> age = 7
> -# <*://bar.com/> age = 0
>  # <http://*> proxy = none
> -# <ftp://*> age = 7
>  
> - age = 92
>  }
> 
> Even the commented out lines are deleted.
> As this goes totally unnoticed (no messages about this whatsoever)
> people may end up losing significant amounts of their cache...

Are you sure about this?  Every time that I edit the upgrade-config.pl
script I run it on my configuration files and I would soon notice this
problem.


I tried it on a temporary copy of my configuration file and nothing
happened.

$ upgrade-config.pl /tmp/wwwoffle.conf
$ diff /tmp/wwwoffle.conf /tmp/wwwoffle.conf.old
$ ls -l /tmp/wwwoffle.conf /tmp/wwwoffle.conf.old 
-rw-r--r--    1 amb      hackers     39197 Aug 21 19:31 /tmp/wwwoffle.conf
-rw-r--r--    1 amb      hackers     39197 Aug 21 19:31 /tmp/wwwoffle.conf.old

The wwwoffle.conf file does contain a Purge section and that does
contain an age line.

Purge
{
 use-mtime = yes
 max-size  = 0
 min-free  = 0

 del-dontget   = yes
 del-dontcache = yes

 use-url = yes

# Short lived file types

 <*://*/*.tar.gz> age = 1w
 <*://*/*.rpm>    age = 1w
 <*://*/*.tgz>    age = 1w
 <*://*/*.zip>    age = 1w
 <*://*/*.deb>    age = 1w

# Defaults

 <http://*/*> age = 8w
 <ftp://*/*> age = 1w

 age = 8w

 compress-age = 2w
}


Do you want to send me a copy of the configuration file that has the
problem and let me try it out.


-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [EMAIL PROTECTED]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.6/user.html

Reply via email to