osc breaks if no keyring is available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
osc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The first call of osc that writes the config file actually works, but on subsequent calls it immeditially crashes:
Traceback (most recent call last):
File "/usr/bin/osc", line 21, in <module>
r = babysitter.
File "/usr/lib/
return prg.main()
File "/usr/lib/
self.
File "/usr/lib/
override_
File "/usr/lib/
'pass': password,
UnboundLocalError: local variable 'password' referenced before assignment
System info:
Description: Ubuntu 12.04 LTS
Release: 12.04
Package info:
osc:
Installiert: 0.132.6-1
Kandidat: 0.132.6-1
Versionstabelle:
*** 0.132.6-1 0
500 http://
100 /var/lib/
I found out that this is related to keyring support. When I disable keyring usage in the config file or with --no-keyring, osc works as expected.
Note that I call osc in a ssh session where no keyring is available. So it might be that the detection of available keyrings is what is broken.