Red Hat Bugzilla – Bug 138451
up2date --help gives error
Last modified: 2007-11-30 17:10:53 EST
Description of problem:
While trying to get the help on up2date I get the following result:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1248, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 355, in main
(options, pkgNames) = optparser.parse_args()
File "/usr/lib/python2.3/optparse.py", line 1129, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.3/optparse.py", line 1169, in _process_args
File "/usr/lib/python2.3/optparse.py", line 1244, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python2.3/optparse.py", line 611, in process
File "/usr/lib/python2.3/optparse.py", line 632, in take_action
File "/usr/sbin/up2date", line 89, in print_help
File "/usr/lib/python2.3/optparse.py", line 1370, in print_help
TypeError: descriptor 'write' requires a 'file' object but received a
same for #up2date -h
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run up2date -h
I also ran into this problem. Looking in usr/bin/up2date on line 89,
it seems to me that there is a typo.
88 def print_help(self, filed=None):
89 OptionParser.print_help(self, file)
91 if not filed:
92 filed = stdout:
I think that the 'file' parameter should be 'filed'. At least on my
system up2date is working again now.
Yep, that did the trick.
A friend of mine just emailed me complaining about this. He was going
to file a bug too, but a quick query found this one.
He's running fc3 with up2date-4.3.47-5 as well.
fixed in 4.3.65 (actually, I belive somewhere in the .50's) but
thats the latest version and includes the fix.
Dupe of 137279
*** Bug 137279 has been marked as a duplicate of this bug. ***
Fix verified in 4.3.58 from fc3-updates-candidate