summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallbase.cpp13
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp1
-rw-r--r--rbutil/rbutilqt/rbutil.ini2
3 files changed, 12 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
index 30f53ae810..5f8fd40d08 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
@@ -224,11 +224,20 @@ void BootloaderInstallBase::setBlFile(QStringList sl)
bool BootloaderInstallBase::setOfFile(QString of, QStringList blfile)
{
bool found = false;
- ArchiveUtil *util = 0;
+ ArchiveUtil *util = nullptr;
+
+ // check if we're actually looking for a zip file. If so we must avoid
+ // trying to unzip it.
+ bool wantZip = false;
+ for (int i = 0; i < blfile.size(); i++)
+ {
+ if (blfile.at(i).endsWith(".zip"))
+ wantZip = true;
+ }
// try ZIP first
ZipUtil *zu = new ZipUtil(this);
- if(zu->open(of))
+ if(zu->open(of) && !wantZip)
{
emit logItem(tr("Zip file format detected"), LOGINFO);
util = zu;
diff --git a/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp b/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp
index c9cbd91abe..8b2ef97cd2 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp
@@ -110,7 +110,6 @@ void BootloaderInstallBSPatch::installStage2(void)
m_tempfile.close();
m_patchedFile.close();
connect(m_thread, SIGNAL(finished()), this, SLOT(installStage3()));
- connect(m_thread, SIGNAL(terminated()), this, SLOT(installStage3()));
m_thread->start();
}
diff --git a/rbutil/rbutilqt/rbutil.ini b/rbutil/rbutilqt/rbutil.ini
index e187dda7e7..9ef6a1b208 100644
--- a/rbutil/rbutilqt/rbutil.ini
+++ b/rbutil/rbutilqt/rbutil.ini
@@ -882,7 +882,7 @@ name="xDuoo X3"
buildserver_modelname=xduoox3
bootloadermethod=bspatch
bootloadername=/xduoo/X3-v11.bsdiff
-bootloaderfile=update.zip
+bootloaderfile=/update.zip
bootloaderfilter=*.zip
manualname=
brand=xDuoo