No error when calling gdebi-kde with an unsupported file

Bug #316116 reported by David
10
Affects Status Importance Assigned to Milestone
gdebi
Fix Released
Undecided
Michael Vogt

Bug Description

When I call gdebi-kde with an unsupported file (for example a .rpm file) the main window appears for a few second with a progress bar and then closes. I don't get any feedback what's going wrong.
I'm not sure, but this could also be a translation problem (see the traceback).

./gdebi-kde xxx.rpm
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Traceback (most recent call last):
  File "./gdebi-kde", line 102, in <module>
    gdebi = GDebiKDE(datadir=data,options=options,file=afile)
  File "/home/david/test/launchpad/gdebi/GDebi/GDebiKDE.py", line 164, in __init__
    self.open(file)
  File "/home/david/test/launchpad/gdebi/GDebi/GDebiKDE.py", line 179, in open
    res = GDebiCommon.open(self, file)
  File "/home/david/test/launchpad/gdebi/GDebi/GDebiCommon.py", line 79, in open
    self.error_header = _("Could not open '%s'" % os.path.basename(file))
  File "/home/david/test/launchpad/gdebi/GDebi/GDebiCommon.py", line 40, in _
    return unicode(gettext.gettext(str), 'UTF-8')
TypeError: decoding Unicode is not supported

Related branches

István Nyitrai (sianis)
Changed in gdebi:
status: New → Confirmed
Revision history for this message
István Nyitrai (sianis) wrote :

Please review my patch!

Michael Vogt (mvo)
Changed in gdebi:
assignee: nobody → mvo
status: Confirmed → Fix Committed
Revision history for this message
David (dogge2k-deactivatedaccount) wrote :

It's working, I get the correct message box! Tested with revision 236.

István Nyitrai (sianis)
Changed in gdebi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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