summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Nicoletti <daniel@debian.(none)>2008-06-30 22:07:06 -0300
committerDaniel Nicoletti <daniel@debian.(none)>2008-06-30 22:07:06 -0300
commit75e125d8f6af2436289acb8fc7b0aa5d0f228ccd (patch)
tree0961deced5e8dfae4a5350a934abcaf0b46d581d
parente092734ef92b00b4a32a9be27f4e26582a41b5db (diff)
Fixed a few bugs like installing when getDepends not avaliable(ie backend apt)
-rwxr-xr-xgui/AddRm/PkReviewChanges.cpp6
-rw-r--r--lib/CMakeLists.txt3
2 files changed, 8 insertions, 1 deletions
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