Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-28 Thread David Faure
On Monday 23 November 2015 12:54:01 Luiz Romário Santana Rios wrote: > QNetworkReply is a sequential device. Yes, that's the problem. > This, as I > understand it, is only a problem because KCompressionDevice is able to > open any file it wants in any sequence No, not KCompressionDevice, but

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-27 Thread Luiz Romário Santana Rios
2015-11-25 18:53 GMT-03:00 David Faure : > On Saturday 21 November 2015 15:50:31 Luiz Romário Santana Rios wrote: >> , or make the waitFor* calls and warn the user >> that passing a QIODevice which is not yet fully ready to >> KCompressionDevice might make KTar::open() block. > >

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-25 Thread Luiz Romário Santana Rios
2015-11-23 13:57 GMT-03:00 Aleix Pol : > On Mon, Nov 23, 2015 at 4:54 PM, Luiz Romário Santana Rios > wrote: >> 2015-11-02 14:53 GMT-03:00 Luiz Romário Santana Rios : >>> Hello, >>> >>> I'm trying to decompress a XZ archive

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-23 Thread Luiz Romário Santana Rios
2015-11-02 14:53 GMT-03:00 Luiz Romário Santana Rios : > Hello, > > I'm trying to decompress a XZ archive downloaded using > QNetworkAccessManager, so, according to the documents, I have to pass > the QNetworkReply pointer to a KCompressionDevice and, then, use it as >

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-23 Thread Aleix Pol
On Mon, Nov 23, 2015 at 4:54 PM, Luiz Romário Santana Rios wrote: > 2015-11-02 14:53 GMT-03:00 Luiz Romário Santana Rios : >> Hello, >> >> I'm trying to decompress a XZ archive downloaded using >> QNetworkAccessManager, so, according to the documents,

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-21 Thread Luiz Romário Santana Rios
Hello again. 2015-11-07 6:03 GMT-03:00 David Faure : > On Friday 06 November 2015 08:47:34 Luiz Romário Santana Rios wrote: >> 2015-11-06 4:48 GMT-03:00 David Faure : >> > On Monday 02 November 2015 14:53:40 Luiz Romário Santana Rios wrote: >> >> >> >> I'm trying to

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-07 Thread David Faure
On Friday 06 November 2015 08:47:34 Luiz Romário Santana Rios wrote: > 2015-11-06 4:48 GMT-03:00 David Faure : > > On Monday 02 November 2015 14:53:40 Luiz Romário Santana Rios wrote: > >> > >> I'm trying to decompress a XZ archive downloaded using > >> QNetworkAccessManager, so,

Re[2]: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-07 Thread Nick Shaforostoff
> Aleix suggested QBuffer, but archives can be *huge*, so this might > eat all available memory. This is the reason why KTar uses a temp file > for the compressed-tar case. qbuffer may be used for decompressing archives that are e.g. less than 50% of free ram if an archive is larger then

Re: Re[2]: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-07 Thread David Faure
On Saturday 07 November 2015 12:18:56 Nick Shaforostoff wrote: > > Aleix suggested QBuffer, but archives can be *huge*, so this might > > eat all available memory. This is the reason why KTar uses a temp file > > for the compressed-tar case. > > qbuffer may be used for decompressing archives

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-06 Thread Aleix Pol
On Fri, Nov 6, 2015 at 8:48 AM, David Faure wrote: > On Monday 02 November 2015 14:53:40 Luiz Romário Santana Rios wrote: >> >> I'm trying to decompress a XZ archive downloaded using >> QNetworkAccessManager, so, according to the documents, I have to pass >> the QNetworkReply

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-06 Thread Luiz Romário Santana Rios
2015-11-02 14:53 GMT-03:00 Luiz Romário Santana Rios : > Hello, > > I'm trying to decompress a XZ archive downloaded using > QNetworkAccessManager, so, according to the documents, I have to pass > the QNetworkReply pointer to a KCompressionDevice and, then, use it as >

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-06 Thread Luiz Romário Santana Rios
2015-11-06 4:48 GMT-03:00 David Faure : > On Monday 02 November 2015 14:53:40 Luiz Romário Santana Rios wrote: >> >> I'm trying to decompress a XZ archive downloaded using >> QNetworkAccessManager, so, according to the documents, I have to pass >> the QNetworkReply pointer to a

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-05 Thread Luiz Romário Santana Rios
2015-11-03 21:29 GMT-03:00 Aleix Pol : > On Tue, Nov 3, 2015 at 3:58 AM, Luiz Romário Santana Rios > wrote: >> 2015-11-02 23:03 GMT-03:00 Aleix Pol : >>> On Tue, Nov 3, 2015 at 3:00 AM, Luiz Romário Santana Rios >>>

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-03 Thread Luiz Romário Santana Rios
2015-11-02 23:03 GMT-03:00 Aleix Pol : > On Tue, Nov 3, 2015 at 3:00 AM, Luiz Romário Santana Rios > wrote: >> 2015-11-02 22:41 GMT-03:00 Aleix Pol : >>> On Mon, Nov 2, 2015 at 6:53 PM, Luiz Romário Santana Rios >>>

Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-02 Thread Luiz Romário Santana Rios
Hello, I'm trying to decompress a XZ archive downloaded using QNetworkAccessManager, so, according to the documents, I have to pass the QNetworkReply pointer to a KCompressionDevice and, then, use it as Ktar's device like this: https://gist.github.com/anonymous/b8fb686367f518a7dbb5 The problem

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-02 Thread Boudhayan Gupta
I'd first ascertain whether the file is corrupt. Why don't you dump the tar to a QFile and manually use tar -xvf to extract it, just to test whether the download is working? On 2 November 2015 at 23:23, Luiz Romário Santana Rios wrote: > Hello, > > I'm trying to decompress

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-02 Thread Aleix Pol
On Mon, Nov 2, 2015 at 6:53 PM, Luiz Romário Santana Rios wrote: > Hello, > > I'm trying to decompress a XZ archive downloaded using > QNetworkAccessManager, so, according to the documents, I have to pass > the QNetworkReply pointer to a KCompressionDevice and, then, use it

Re: Failure while executing KTar::open while using KCompressionDevice as the device

2015-11-02 Thread Aleix Pol
On Tue, Nov 3, 2015 at 3:00 AM, Luiz Romário Santana Rios wrote: > 2015-11-02 22:41 GMT-03:00 Aleix Pol : >> On Mon, Nov 2, 2015 at 6:53 PM, Luiz Romário Santana Rios >> wrote: >>> Hello, >>> >>> I'm trying to decompress a XZ