diff options
Diffstat (limited to 'tizen/src/ui/menu/sdbhelperthread.cpp')
-rw-r--r-- | tizen/src/ui/menu/sdbhelperthread.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tizen/src/ui/menu/sdbhelperthread.cpp b/tizen/src/ui/menu/sdbhelperthread.cpp index dec4171205..2de9cc8e34 100644 --- a/tizen/src/ui/menu/sdbhelperthread.cpp +++ b/tizen/src/ui/menu/sdbhelperthread.cpp @@ -66,9 +66,14 @@ void SdbHelperThread::run() errorMsg = QString::fromLocal8Bit(process->readAllStandardError()); qDebug() << "errorMsg" << errorMsg; qDebug() << "outMsg" << outMsg; + if (command == SDB_INSTALL_RPM_COMMAND && i == 0 && outMsg.startsWith("ro")) { + qWarning() << "read only platform"; + emit error(QString(MSG_MOUNT_WARNING)); + return; + } //FIXME: (sdb) general sdb installation failure message is printed with stdout */ - if (command == SDB_INSTALL_COMMAND && outMsg.contains(SDB_INSTALL_FAILURE)) { + if (command != SDB_PUSH_COMMNAD && outMsg.contains(SDB_INSTALL_FAILURE)) { emit errorOccured(outMsg, process->exitCode()); return; } |