Fixed a spelling mistake: scriplet → scriptlet.

Reported at https://www.transifex.com/projects/p/chakra-project/translate/#pt_BR/akabeicore/15835685
parent 98674bf0
...@@ -42,7 +42,7 @@ class Error ...@@ -42,7 +42,7 @@ class Error
DuplicateTargetError = 3, DuplicateTargetError = 3,
UnresolvableDependenciesError = 4, UnresolvableDependenciesError = 4,
DatabaseError = 5, DatabaseError = 5,
ScripletError = 6, ScriptletError = 6,
NetworkError = 7, NetworkError = 7,
NetworkContentNotFoundError = 8, NetworkContentNotFoundError = 8,
NetworkOperationCanceledError = 9, NetworkOperationCanceledError = 9,
......
...@@ -22,7 +22,7 @@ class Package; ...@@ -22,7 +22,7 @@ class Package;
* *
* \brief This class describes a script which possibly gets executed once in a transaction. * \brief This class describes a script which possibly gets executed once in a transaction.
* *
* A Hook is basically a scriplet, but on a global scale. * A Hook is basically a scriptlet, but on a global scale.
* Even though multiple packages can request a hook to be executed, * Even though multiple packages can request a hook to be executed,
* it will only be done once at the end of the transaction. * it will only be done once at the end of the transaction.
* *
......
...@@ -65,7 +65,7 @@ void ChrootedProcess::slotFinished(int exitCode) ...@@ -65,7 +65,7 @@ void ChrootedProcess::slotFinished(int exitCode)
emit scriptFinished(true); emit scriptFinished(true);
} else { } else {
// Bad. // Bad.
emit errorsOccured(Error::List() << Error(Akabei::Error::ScripletError, tr("The scriplet for the following package failed to execute: %1: %2").arg(m_operation->targetName()).arg(errorString()), m_operation)); emit errorsOccured(Error::List() << Error(Akabei::Error::ScriptletError, tr("The scriptlet for the following package failed to execute: %1: %2").arg(m_operation->targetName()).arg(errorString()), m_operation));
emit scriptFinished(false); emit scriptFinished(false);
} }
deleteLater(); deleteLater();
...@@ -104,7 +104,7 @@ PlainScriptletOperation::~PlainScriptletOperation() ...@@ -104,7 +104,7 @@ PlainScriptletOperation::~PlainScriptletOperation()
void PlainScriptletOperation::run() void PlainScriptletOperation::run()
{ {
akabeiDebug() << "Run scriplet"; akabeiDebug() << "Run scriptlet";
QString root = Config::instance()->root(); QString root = Config::instance()->root();
QDir tempRoot = Config::instance()->rootDir().absoluteFilePath("tmp"); QDir tempRoot = Config::instance()->rootDir().absoluteFilePath("tmp");
......
...@@ -193,7 +193,7 @@ void PlainUpgradeOperation::run() ...@@ -193,7 +193,7 @@ void PlainUpgradeOperation::run()
if (ret != SQLITE_OK) { if (ret != SQLITE_OK) {
// Problems... // Problems...
Helpers::QueryPerformer::rollbackTransaction(Backend::instance()->localDatabase()); Helpers::QueryPerformer::rollbackTransaction(Backend::instance()->localDatabase());
setErrors(Error::List() << Error(Error::DatabaseError, QObject::tr("Could not remove scriplet from database!"), this)); setErrors(Error::List() << Error(Error::DatabaseError, QObject::tr("Could not remove scriptlet from database!"), this));
setFinished(false); setFinished(false);
return; return;
} }
......
...@@ -230,7 +230,7 @@ void PolkitUpgradeOperation::Private::__k__polkitFinished(const QString &archive ...@@ -230,7 +230,7 @@ void PolkitUpgradeOperation::Private::__k__polkitFinished(const QString &archive
if (ret != SQLITE_OK) { if (ret != SQLITE_OK) {
// Problems... // Problems...
Helpers::QueryPerformer::rollbackTransaction(Backend::instance()->localDatabase()); Helpers::QueryPerformer::rollbackTransaction(Backend::instance()->localDatabase());
q->setErrors(Error::List() << Error(Error::DatabaseError, QObject::tr("Could not remove scriplet from database!"), q)); q->setErrors(Error::List() << Error(Error::DatabaseError, QObject::tr("Could not remove scriptlet from database!"), q));
q->setFinished(false); q->setFinished(false);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment