Commit b0eb6e88 authored by Luca Giambonini's avatar Luca Giambonini

generate a proper error if the package to be removed is not installed

parent fe468235
......@@ -182,8 +182,9 @@ void PlainRemoveOperation::validate()
}
if (!found) {
// setErrors(Error::List() << Error());
setErrors(Error::List() << Error(Error::UnknownError, QObject::tr("The package is not installed."), this));
setValidationFinished(false);
return;
}
if (!(processingOptions().testFlag(Akabei::SkipDependencies))) {
setTargetRemovals(QStringList() << d->package->name() << d->package->provides());
......
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