Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232211 - Typo in python-updater
Summary: Typo in python-updater
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-07-18 16:08 UTC by Joshua Doll
Modified: 2008-07-24 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Doll 2008-07-18 16:08:57 UTC
Line 149 in /usr/sbin/python-updater has a typo: 

    eerror "Could't determine portage python"

it should probably be:

    eerror "Couldn't determine portage python"


Reproducible: Always
Comment 1 Ali Polatel (RETIRED) gentoo-dev 2008-07-19 12:23:59 UTC
This is fixed in python-updater-0.5, please update your python-updater
Comment 2 Joshua Doll 2008-07-20 01:25:50 UTC
(In reply to comment #1)
> This is fixed in python-updater-0.5, please update your python-updater
> 

I am running python-updater-0.5


nietzsche pym # python-updater -V
0.5

and the tpyo is still there. I even removed and reinstalled it. I could make a patch but am unsure of how.

get_portage_python() {
    local oldpy newpy
    if [[ ! -z "$1" ]]; then
        oldpy="$1"
    else
        oldpy=2.4
    fi

    if [ ! -z "$2" ]; then
        newpy="$2"
    else
        newpy=2.5
    fi

    pybin=/usr/bin/python
    for py in ${pybin} ${pybin}${oldpy} ${pybin}${newpy}; do
        if ${py} -c "import portage" > /dev/null 2>&1; then
            echo -n "${py}"
            return 0
        fi
    done
    eerror "Could't determine portage python"
Comment 3 Ali Polatel (RETIRED) gentoo-dev 2008-07-24 01:10:50 UTC
I'm sorry, it was my fault.
This is fixed in svn¹ and will be in the next version.

¹: http://overlays.gentoo.org/proj/python/changeset/101
Comment 4 Joshua Doll 2008-07-24 14:15:52 UTC
(In reply to comment #3)
> I'm sorry, it was my fault.
> This is fixed in svn¹ and will be in the next version.
> 
> ¹: http://overlays.gentoo.org/proj/python/changeset/101
> 

Well then I'm happy. Thank you.