hwdb raises Exception when looking up route
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hwdb-client (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
When running hwdb-gui, at the networking part, hwdb-gui is unable to find route
because it's not in the current path:
miro.sebas(~): /usr/bin/hwdb-gui
sh: route: command not found
Traceback (most recent call last):
File "/usr/bin/
self.
File "/usr/bin/
self.test(set)
File "/usr/bin/
netdevice = self.getroute(
File "/usr/bin/
return route
UnboundLocalError: local variable 'route' referenced before assignment
The following patch fixes it:
--- hwdb-gui.orig 2005-06-14 14:22:00.410016528 +0200
+++ hwdb-gui 2005-06-14 14:21:25.889264480 +0200
@@ -201,7 +201,7 @@
def getroute(self):
- for line in os.popen('route -n'):
+ for line in os.popen(
if line.startswith
return route
Changed in hwdb-client (Ubuntu): | |
assignee: | Oliver Grawert (ogra) → nobody |
are you sure you are running a default ubuntu ? /sbin and /usr/sbin should
always be in the default path of every user. but thanks for the patch, i'll
apply it to the next version, once all missing HAL bits are in breezy to make it
run properly.