There's a typo in the way the actual error message is being printed
which I fixed here: sftp://[EMAIL PROTECTED]/~jrib/command-not-
found/ubuntu.bug118814 .

Why the error is actually showing up isn't really command-not-found-
specific.  If you try this, you see you get an error too:

# works fine
+([EMAIL PROTECTED]:~)
% python -c "import dbm; 
dbm.open('/usr/share/command-not-found/programs.d/all-universe', 'r');"

# does not work fine in non-existant directory
 +([EMAIL PROTECTED]:~)
% mkdir foo; cd foo; rmdir ../foo; python -c "import dbm; 
dbm.open('/usr/share/command-not-found/programs.d/all-universe', 'r');"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
dbm.error: (2, 'No such file or directory')

-- 
Typing an unknown command in a deleted directory makes command-not-found angry
https://bugs.launchpad.net/bugs/118814
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to