[mythtv-users] trunk gentoo ebuilds and logrotate

Phil Bridges gravityhammer at gmail.com
Wed Apr 18 00:31:15 UTC 2012


On Thu, Sep 22, 2011 at 8:32 PM, Bill Meek <keemllib at gmail.com> wrote:
> On Thu, 2011-09-22 at 20:13 -0400, Raymond Wagner wrote:
> ...
>
> Thank you. v0.25pre-3358-gcd002d2 logcleanup.py works fine
> now. My glob.glob(...) solution was /almost/ posted too );
>
> Bill
>

Sorry to dredge up an old topic, but I'm trying to get my logcleanup
script working.  If I run it from the command line, I get:

 # python /usr/share/mythtv/bin/logcleanup.py
Traceback (most recent call last):
  File "/usr/share/mythtv/bin/logcleanup.py", line 133, in <module>
    main(opts)
  File "/usr/share/mythtv/bin/logcleanup.py", line 95, in main
    ls = sorted(LogFile.filter(opts.logpath, os.listdir(opts.logpath)))
  File "/usr/share/mythtv/bin/logcleanup.py", line 35, in filter
    return [cls(path, f) for f in filelist if cls._re.match(f)]
  File "/usr/share/mythtv/bin/logcleanup.py", line 48, in __init__
    self.sequence = int(m.group('sequence'))
ValueError: invalid literal for int() with base 10: '.1'

Is there anything that describes the parameters?


More information about the mythtv-users mailing list