[mythtv-commits] Ticket #9482: mythconverg_restore.pl --change_hostname breaks things if old_hostname is 'myth'

MythTV noreply at mythtv.org
Fri Jan 14 19:10:29 UTC 2011


#9482: mythconverg_restore.pl --change_hostname breaks things if old_hostname is
'myth'
------------------------------------------------+--------------------------
 Reporter:  Alex Tomlins <alex@…>               |           Type:  Patch -
   Status:  new                                 |  Bug Fix
Milestone:  unknown                             |       Priority:  minor
  Version:  0.24-fixes                          |      Component:  MythTV -
 Keywords:                                      |  General
                                                |       Severity:  medium
                                                |  Ticket locked:  0
------------------------------------------------+--------------------------
 There's an issue with the `mythconverg_restore.pl` script when renaming a
 host.  If the old_hostname is 'myth' then lots of values in the setting
 table get clobbered.

 For example when renaming a host from myth to myth-fe1 all the mythvideo.*
 setting are renamed to myth-fe1video.*

 I've tracked the problem down to the core that handles changing the
 hostname in the SGweightPerDir values.

 I've also noticed another problem with the current code.  If the
 old_hostname appears in the directory part, this will get changed as well.

 I've updated the code to be much more specific about what it changes.
 Patch attached (created with git format-patch).

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9482>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list