mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46:13 +01:00
- hack for _help_preprocess_cmd_option_list to survive setup.py build
This commit is contained in:
parent
f2a738d4b6
commit
403576b952
1
NEWS
1
NEWS
@ -3,6 +3,7 @@
|
||||
- added osc my ... pkg/prj/req shorthand commands
|
||||
- add 'osc se' alias for 'osc search -e'
|
||||
- add -b -m -M to 'osc search'
|
||||
- hack for _help_preprocess_cmd_option_list to survive setup.py build
|
||||
|
||||
0.121.jw02
|
||||
- made rresults an alias for results. python decorators are a strange concept...
|
||||
|
@ -132,9 +132,6 @@ class Osc(cmdln.Cmdln):
|
||||
self.conf = conf
|
||||
self.options.verbose = conf.config['verbose']
|
||||
conf.exclude_glob = conf.config['exclude_glob'].split()
|
||||
#if conf.config['version']:
|
||||
# print "osc-%s" % __version__
|
||||
# exit
|
||||
|
||||
|
||||
def get_cmd_help(self, cmdname):
|
||||
@ -147,6 +144,9 @@ class Osc(cmdln.Cmdln):
|
||||
# overridden from Cmdln in order to use config values in options' help text
|
||||
def _help_preprocess_cmd_option_list(self, help, cmdname=None):
|
||||
help = cmdln.Cmdln._help_preprocess_cmd_option_list(self, help, cmdname)
|
||||
# FIXME: setup.py build has no useful conf.config here.
|
||||
if not conf.config.has_key('request_list_days'):
|
||||
conf.config['request_list_days'] = 30
|
||||
return help % conf.config
|
||||
|
||||
def do_init(self, subcmd, opts, project, package=None):
|
||||
|
Loading…
Reference in New Issue
Block a user