Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123147 - python-updater --help should fail
Summary: python-updater --help should fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-17 02:13 UTC by Jeroen Roovers (RETIRED)
Modified: 2007-01-25 15:12 UTC (History)
1 user (show)

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


Attachments
Python Updater patch (python-updater.patch,228 bytes, patch)
2006-03-03 22:51 UTC, Nick Devito
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2006-02-17 02:13:33 UTC
python-updater should fail when executed with unrecognised command line options, and should probably be enhanced to recognise long options:

epia ~ # python-updater --help
 * Logging disabled due to permissions
usage: python-updater [-h|-p|-o X.X|-n X.X]
 -h      help
 -p      pretend (don't do anything)
 -o X.X  set old python version to upgrade from [default: 2.3]
 -n X.X  set new python version to upgrade to [default: 2.4]
unrecognised option: --help
 * Starting Python Updater from 2.3 to 2.4 :
 * Searching for packages with files in /usr/lib/python2.3 /usr/lib32/python2.3 /usr/lib64/python2.3 ..^C
Comment 1 Nick Devito 2006-03-03 22:51:31 UTC
Created attachment 81262 [details, diff]
Python Updater patch

This should prevent python-updater from continuing on when it receives an invalid argument.
Comment 2 Bryan Østergaard (RETIRED) gentoo-dev 2007-01-25 15:12:35 UTC
Patch added in svn. I also added long options.