[mythtv-users] trunk gentoo ebuilds and logrotate
Raymond Wagner
raymond at wagnerrp.com
Wed Apr 18 13:32:24 UTC 2012
On 4/18/2012 00:38, Bill Meek wrote:
> On 04/17/2012 10:59 PM, Phil Bridges wrote:
> ...
>>
>> Thanks for the response. Going to the directory and executing it
>> gives the same error, even if I use the parameters that have been
>> dumped into my daily cronjob.
>
> 1st, I'm assuming you're on v0.25 (obvious, but gotta mention it.)
>
> I just downloaded a copy from:
>
>
> http://code.mythtv.org/trac/browser/mythtv/mythtv/contrib/maintenance/logcleanup.py?rev=cd002d2
>
> and it runs A-OK. I'd suggest downloading it (use the plain text
> version download.) There are differences compared to the Traceback
> you provided in your 1st post.
>
Seems the same problem exists in both versions, and is a slight flaw in
the regular expression. The rotated sequence should not include the
preceding period.
_re =
re.compile("(?P<appname>[a-z]*(\.[a-z]+)?).(?P<date>[0-9]{14}).(?P<pid>[0-9]{1,6}).log((?P<sequence>.[0-9]+)\.(?P<compression>[a-zA-Z0-9]+)?)?")
More information about the mythtv-users
mailing list