NOISSUE fix bug in unpacking of forge pack200 jar files
This caused failed downloads and broken files to be used.
This commit is contained in:
@ -182,8 +182,11 @@ void CacheDownload::downloadReadyRead()
|
||||
{
|
||||
qCritical() << "Failed writing into " + m_target_path;
|
||||
m_status = Job_Failed;
|
||||
m_reply->abort();
|
||||
m_output_file->cancelWriting();
|
||||
m_output_file.reset();
|
||||
emit failed(m_index_within_job);
|
||||
wroteAnyData = false;
|
||||
return;
|
||||
}
|
||||
wroteAnyData = true;
|
||||
}
|
||||
|
@ -19,7 +19,6 @@
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QFile>
|
||||
#include <QTemporaryFile>
|
||||
#include <QDateTime>
|
||||
#include <QCryptographicHash>
|
||||
|
||||
|
@ -32,7 +32,7 @@ enum JobStatus
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<class NetAction> NetActionPtr;
|
||||
class MULTIMC_LOGIC_EXPORT NetAction : public QObject, public std::enable_shared_from_this<NetAction>
|
||||
class MULTIMC_LOGIC_EXPORT NetAction : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
protected:
|
||||
@ -54,10 +54,6 @@ public:
|
||||
{
|
||||
return m_failures;
|
||||
}
|
||||
NetActionPtr getSharedPtr()
|
||||
{
|
||||
return shared_from_this();
|
||||
}
|
||||
|
||||
public:
|
||||
/// the network reply
|
||||
|
Reference in New Issue
Block a user