typo in string substitution

Bug #131435 reported by Jason Ribeiro
6
Affects Status Importance Assigned to Milestone
command-not-found
Fix Released
Low
Zygmunt Krynicki
command-not-found (Ubuntu)
Fix Released
Low
Zygmunt Krynicki

Bug Description

Binary package hint: command-not-found

string substitution is not being done properly for an error. diff follows:

=== modified file 'CommandNotFound/CommandNotFound.py'
--- CommandNotFound/CommandNotFound.py 2007-07-30 16:13:25 +0000
+++ CommandNotFound/CommandNotFound.py 2007-08-09 19:24:08 +0000
@@ -19,7 +19,7 @@
             try:
                 self.db = dbm.open(filename[:-3], "r")
             except dbm.error, err:
- print >>sys.stderr, "Unable to open binary database %s: %s", filename, err
+ print >>sys.stderr, "Unable to open binary database %s: %s" % (filename, err)
     def lookup(self, key):
         if self.db and self.db.has_key(key):
             return self.db[key]

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks for the bug report. This will be fixed for gutsy

Changed in command-not-found:
assignee: nobody → zkrynicki
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks for the bug report.
Fixed in yet-unnamed branch that will be integrated with upcoming gutsy.

Changed in command-not-found:
assignee: nobody → zkrynicki
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

command-not-found (0.2.7) gutsy; urgency=low

  [Zygmunt Krynicki]
  * data/suggestions.d:
    - removed
  * CommandNotFound/CommandNotFound.py:
    - fix typo in string substitution (LP: #131435)
    - only print components that are really required (LP: #133869)
  * setup.py:
    - move to /usr/lib, no end-user application (LP: #112411)

 -- Michael Vogt <email address hidden> Wed, 22 Aug 2007 06:49:01 +0200

Changed in command-not-found:
status: Confirmed → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Can we set this to fix released?

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This was applied ages ago

Changed in command-not-found:
importance: Medium → Low
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.