Commit cccc7abe authored by Lukas Appelhans's avatar Lukas Appelhans

There we go more stuff

parent 8dd17537
......@@ -19,3 +19,5 @@ set(apm_SRCS removeoperation.cpp syncoperation.cpp apm.cpp queryoperation.cpp ma
#qt4_automoc(${guzuta_SRCS})
kde4_add_executable(akabei ${apm_SRCS})
target_link_libraries(akabei ${KDE4_KDEUI_LIBRARY} ${KDE4_KIO_LIBRARY} ${AKABEICLIENT_LIBRARIES})
install(TARGETS akabei ${INSTALL_TARGETS_DEFAULT_ARGS})
......@@ -55,6 +55,10 @@ void RemoveOperation::remove(QList<Akabei::Package*> packages)
Akabei::ProcessingOptions options;
if (m_operations.contains(APM::SkipDependencyCheck))
options |= Akabei::SkipDependencies;
if (m_operations.contains(APM::RemoveConfig))
options |= Akabei::RemoveConfigs;
if (m_operations.contains(APM::DatabaseOnly))
options |= Akabei::DatabaseOnly;
connect(AkabeiClient::Backend::instance()->transactionHandler(), SIGNAL(validationFinished(bool)), SLOT(validationFinished(bool)));
connect(AkabeiClient::Backend::instance()->transactionHandler(), SIGNAL(errorsOccurred(QList<Akabei::Error*>&)), SLOT(errors(QList<Akabei::Error*>&)));
AkabeiClient::Backend::instance()->transactionHandler()->validate(options);
......
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