--- /usr/lib64/python2.7/site-packages/smart/uncompress.py 2010-05-07 16:51:48.000000000 +0100 +++ /tmp/uncompress.py 2013-03-29 23:27:09.000000000 +0000 @@ -54,10 +54,10 @@ return None def uncompress(self, localpath): - raise Error, _("Unsupported file type") + raise Error, _("Unsupported file type " + str(localpath)) def open(self, localpath): - raise Error, _("Unsupported file type") + raise Error, _("Unsupported file type " + str(localpath)) class BZ2Handler(UncompressorHandler): @@ -120,8 +120,11 @@ except EOFError, e: raise Error, ("%s\nPossibly corrupted channel file.") % e -Uncompressor.addHandler(LZMAHandler) + def open(self, localpath): + import lzma + return lzma.LZMAFile(localpath) +Uncompressor.addHandler(LZMAHandler) class XZHandler(UncompressorHandler):