Bug 149329 - media-tv/mythtv should use elog instead of mixing echo and einfo
Bug#: 149329 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cardoe@gentoo.org Reported By: cazzantonio@gmail.com
Component: Ebuilds
URL: 
Summary: media-tv/mythtv should use elog instead of mixing echo and einfo
Keywords:  
Status Whiteboard: 
Opened: 2006-09-27 11:05 0000
Description:   Opened: 2006-09-27 11:05 0000
mythtv ebuild (all versions) does not save einfo correclty in the elog logs.
This is because crucial informations are echoed to the console through the
"echo" command instead of "einfo" (which is logged by elog).
This is not a terrible bug but is a very annoying thing if you relay on elog to
read the einfo printed by emerge.

this is an exemple:
pkg_postinst() {
        if ! use backendonly; then
                echo    ###who cares for this line? the problem is below
                einfo "Want mythfrontend to start automatically? Run the
following:"
                echo "crontab -e -u mythtv"  #### this is a line that doesn't
get logged
                einfo "Add add the following:"
                echo "* * * * * /usr/bin/runmythfe &"  ##### another one
        fi
        echo
        einfo "To always have MythBackend running and available run the
following:"
        echo "rc-update add mythbackend default"  #another
        echo
        ewarn "Your recordings folder must be owned by the user 'mythtv' now"
        echo "chown -R mythtv /path/to/store"  #idem
}

I hope there are no other ebuilds that behave this way... If I'll find some of
them I'll let you know ;-)

------- Comment #1 From Steve Dibb 2006-09-30 05:52:06 0000 -------
Thanks, fixed in CVS