release 0.6.5
authorHeikki Holstila <heikki.holstila@gmail.com>
Mon, 23 Aug 2010 11:08:05 +0000 (14:08 +0300)
committerHeikki Holstila <heikki.holstila@gmail.com>
Mon, 23 Aug 2010 11:08:05 +0000 (14:08 +0300)
TODO.txt
confirmdialog.cpp
confirmdialog.h
debian/changelog
fapman
mainwindow.cpp

index 15fb75a..3d88521 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -5,12 +5,6 @@
 -------------------------------------------------------------------------------------
 
 
-0.6.5
-* ignore upgrades to pinned packages and warn about install/remove
-* warn when trying to do a system upgrade
-- promote to extras-testing
-
-
 0.7:
 - update install/remove changes directly to internal package db & don't require re-reading package lists afterwards
 - support loading .install files
index 4249c3d..87add30 100644 (file)
@@ -54,3 +54,8 @@ void ConfirmDialog::setText(QString title, QString text)
        ui->label->setText(text);
        this->adjustSize();
 }
+
+void ConfirmDialog::disableButton()
+{
+       ui->btn_OK->setEnabled(false);
+}
index f24e823..ac4c12c 100644 (file)
@@ -34,6 +34,7 @@ public:
        explicit ConfirmDialog(bool button, QWidget *parent);
     ~ConfirmDialog();
        void setText(QString title, QString text);
+       void disableButton();
 #ifdef Q_WS_MAEMO_5            // workaround for buggy Qt autorotation
        int exec() {
                QRect r = dynamic_cast<QWidget*>(this->parent())->rect();
index d89f893..fcf8c96 100644 (file)
@@ -1,8 +1,9 @@
 fapman (0.6.5-1) unstable; urgency=low
 
-  *
+  * ignore upgrades to pinned packages and warn about install/remove
+  * warn if trying to do a system upgrade
 
- -- Heikki Holstila <heikki.holstila@gmail.com>  Fri, 20 Aug 2010 14:09:25 +0300
+ -- Heikki Holstila <heikki.holstila@gmail.com>  Mon, 23 Aug 2010 14:06:35 +0300
 
 fapman (0.6.4-1) unstable; urgency=low
 
diff --git a/fapman b/fapman
index 8468d29..9f0c13b 100755 (executable)
Binary files a/fapman and b/fapman differ
index ddebc48..28009c1 100644 (file)
@@ -446,6 +446,11 @@ void MainWindow::operationQueueFinished(QList<AAptInterface::interfaceMode> last
 
                busyDialog(false);
                ConfirmDialog d(true, this);
+               if( inst.count()==0 && remv.count()==0 )
+               {
+                       pkglist = "None of the packages can be installed";
+                       d.disableButton();
+               }
                d.setText("Confirmation",pkglist);
                if( d.exec() ) {
                        iAptInterface->addQueuedOperation(AAptInterface::ModeAptGetInstall);