Page 1 of 1

Upstream bug in wicd-cli, fix included.

Posted: 21 Nov 2011, 02:44
by TheDoctor
Hi. While working with the wicd-cli utility (/usr/share/wicd/cli/wicd-cli.py) I ran across a bug in the option parser that prevents the utility from being used to configure encryption on a wireless network interface. Before the fix, the command wicd-cli --wireless --network=0 --network-property=enctype --set-to=wpa2 would result in the following Python traceback:
Traceback (most recent call last):
File "/usr/share/wicd/cli/wicd-cli.py", line 146, in <module>
options.network_property = option.network_property.lower()
NameError: name 'option' is not defined
The fix is trivial but crucial:

options.network_property = options.network_property.lower()

I've fixed it on one of my test boxen and it seems to do the job. You may wish to incorporate the single-character fix in v1.1 of Porteus.

Re: Upstream bug in wicd-cli, fix included.

Posted: 21 Nov 2011, 09:40
by fanthom
it's too late for incorporating the fix in rc2 but i'll pay attention to do it for 1.1 final.

thanks a lot.