~kubuntu-members/parley/4.11

Viewing all changes in revision 2903.

  • Committer: José Manuel Santamaría Lema
  • Date: 2013-10-29 10:06:49 UTC
  • Revision ID: git-v1:145ccc8a0b084257058d00a501c80067c7f99714
Don't crash when downloading .tar.7z files with KNS.

If I just download it manually, uncompress the *.tar.7z file and feed the kvtml
file into parley it doesn't crash.

There are 2 separate problems involved here:
1) KNS doesn't work with *.tar.7z files.
2) Even if the the file format of the file downloaded from KNS isn't recognized
   for now, parley shouldn't crash.

The patch in this reviewboard is intended to fix the problem 2) and it was made
with help from Aleix Pol (thanks!).

Just in case you are curious about the problem 1) - the related code from
kdelibs is the following:

* knewstuff/knewstuff3/core/installation.cpp
  (function Installation::installDownloadedFileAndUncompress)
  Here knewstuff tries to use KTar to deal with the downloaded file.

* files under kdecore/compression/*
  Here is kfilterdev, if I'm not mistaken this is what KTar uses to deal with
  files compressed gz,bzip,etc. The thing is: there is no filter for *.7z files,
  so that's why they can't work in KNS right now.

REVIEW: 113484

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: