From 75e125d8f6af2436289acb8fc7b0aa5d0f228ccd Mon Sep 17 00:00:00 2001 From: Daniel Nicoletti Date: Mon, 30 Jun 2008 22:07:06 -0300 Subject: Fixed a few bugs like installing when getDepends not avaliable(ie backend apt) --- gui/AddRm/PkReviewChanges.cpp | 6 ++++++ lib/CMakeLists.txt | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gui/AddRm/PkReviewChanges.cpp b/gui/AddRm/PkReviewChanges.cpp index eeedb83..a00dadc 100755 --- a/gui/AddRm/PkReviewChanges.cpp +++ b/gui/AddRm/PkReviewChanges.cpp @@ -105,6 +105,9 @@ void PkReviewChanges::checkTask() m_waitPD->show(); m_transactionReq->getRequires("installed", m_reqDepPackages.takeFirst(), true); } + else { + removePackages(); + } } else KMessageBox::error( this, i18n("Sorry, your backend does not support removing packages"), i18n("Erro KPackageKit") ); @@ -129,6 +132,9 @@ void PkReviewChanges::checkTask() m_waitPD->show(); m_transactionDep->getDepends("~installed", m_reqDepPackages.takeFirst(), true); } + else { + installPackages(); + } } else KMessageBox::error( this, i18n("Sorry, your backend does not support installing packages"), i18n("Erro KPackageKit") ); diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 59acc59..a70403f 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -12,7 +12,7 @@ find_package(Qt4 REQUIRED) add_definitions(${QT_DEFINITIONS}) include(FindPkgConfig) -pkg_check_modules(POLKIT polkit-dbus) +pkg_check_modules(POLKIT polkit-dbus polkit-grant) include_directories( ${QT_INCLUDES} @@ -54,6 +54,7 @@ set_target_properties( packagekit-qt PROPERTIES VERSION 0.1 SOVERSION 0 ) target_link_libraries(packagekit-qt ${QT_QTCORE_LIBRARY} polkit-dbus + polkit-grant ) install(TARGETS -- cgit v1.2.3