- if( instver.count()>i ) {
- pkglist += " " + instver.at(i);
- if( pkg && instver.at(i) != pkg->version() ) {
- qDebug() << "Version mismatch, database version is" << pkg->version() << "but installing" << instver.at(i);
- mismatch = true;
- pkglist += " <font color=\"red\">***TRYING TO INSTALL " + pkg->version() + "***</font> ";
- }
- }
- if( pkg && pkg->size()>0 ) {
- pkglist += QString(" (%L1 kB)").arg(pkg->size()/1024);
- }
- pkglist += "<br>";
- }
- }
- pkglist += "</font>";
-
- if( mismatch ) {
- ConfirmDialog m(false, dialogParent);
- m.setText("Warning", "There is a version mismatch between your original package selections and some of the packages being installed " \
- "from the repositories. This could be due to your application catalogs being out of date.");
- m.exec();
- }
- if( installing_blacklisted ) {
- ConfirmDialog b(false, dialogParent);
- b.setText("Warning","Blacklisted package(s) will be installed");
- b.exec();
- }
- if( warn_system_package_remove ) {
- ConfirmDialog s(false, dialogParent);
- s.setText("Warning","You are about to remove a critical system package.");
- s.exec();
- }
- if( warn_system_package_install ) {
- ConfirmDialog s(false, dialogParent);
- s.setText("Warning","You are trying to perform an install/upgrade operation on a critical system package. Doing a system upgrade with " \
- "Faster Application Manager has not been tested and it could result in a horrible failure. You have been warned.");
- s.exec();
- }
-
- busyDialog(false);
- ConfirmDialog d(true, dialogParent);
- 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);
-
- if( iSettings->qsettings()->value("enable_autoclean",true).toBool() && inst.count()>0 )
- iAptInterface->addQueuedOperation(AAptInterface::ModeAptGetClean);
-
- QString busytext;
- if( remv.count() > 0 )
- busytext += QString("Remove %1 package(s)<br>").arg(remv.count());
- if( inst.count() > 0 )
- busytext += QString("Install %1 package(s)<br>").arg(inst.count());
- busytext += "Preparing...";
- busyDialog(true, "Operation in progress", busytext);
-
- // "run" really does nothing here since the previous item should still be running
- if( iWinPackageView->isVisible() ) {
- iAptInterface->run(iWinPackageView->mydimmer());
- } else {
- iAptInterface->run(iDimmer);
- }
- }
- iNextOperation = OpNone;
- return;
- } else {
- busyDialog(false);
- iNextOperation = OpNone;
-
- if( iSettings->qsettings()->value("sound_notify",false).toBool() )
- {
- qDebug() << "playing sound";
- iMediaObject->setCurrentSource( Phonon::MediaSource(iSettings->qsettings()->value("sound_file","/usr/share/sounds/ui-operation_ready.wav").toString()) );
- iMediaObject->play();
- }
-
- QString text = "<br><b><u>Faster Application Manager</u></b><br>"
- "<b>"+title+"</b><br>" + msgs.join("<br>") + "<br>";
-
- QRect r = QApplication::desktop()->rect();
- if(r.width() < r.height()) {
- ConfirmDialog d(false, dialogParent);
- d.setText(title,msgs.join("<br>"));
- d.exec();
- } else {
+ if( instver.count()>i ) {
+ pkglist += " " + instver.at(i);
+ if( pkg && instver.at(i) != pkg->version() ) {
+ qDebug() << "Version mismatch, database version is" << pkg->version() << "but installing" << instver.at(i);
+ mismatch = true;
+ pkglist += " <font color=\"red\">***TRYING TO INSTALL " + pkg->version() + "***</font> ";
+ }
+ }
+ if( pkg && pkg->size()>0 ) {
+ pkglist += QString(" (%L1 kB)").arg(pkg->size()/1024);
+ }
+ pkglist += "<br>";
+ }
+ }
+ pkglist += "</font>";
+
+ if( mismatch ) {
+ ConfirmDialog m(false, dialogParent);
+ m.setText("Warning", "There is a version mismatch between your original package selections and some of the packages being installed " \
+ "from the repositories. This could be due to your application catalogs being out of date.");
+ m.exec();
+ }
+ if( installing_blacklisted ) {
+ ConfirmDialog b(false, dialogParent);
+ b.setText("Warning","Blacklisted package(s) will be installed");
+ b.exec();
+ }
+ if( warn_system_package_remove ) {
+ ConfirmDialog s(false, dialogParent);
+ s.setText("Warning","You are about to remove a critical system package.");
+ s.exec();
+ }
+ if( warn_system_package_install ) {
+ ConfirmDialog s(false, dialogParent);
+ s.setText("Warning","You are trying to perform an install/upgrade operation on a critical system package. Doing a system upgrade with " \
+ "Faster Application Manager has not been tested and it could result in a horrible failure. You have been warned.");
+ s.exec();
+ }
+
+ busyDialog(false);
+ ConfirmDialog d(true, dialogParent);
+ 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);
+
+ if( iSettings->qsettings()->value("enable_autoclean",true).toBool() && inst.count()>0 )
+ iAptInterface->addQueuedOperation(AAptInterface::ModeAptGetClean);
+
+ QString busytext;
+ if( remv.count() > 0 )
+ busytext += QString("Remove %1 package(s)<br>").arg(remv.count());
+ if( inst.count() > 0 )
+ busytext += QString("Install %1 package(s)<br>").arg(inst.count());
+ busytext += "Preparing...";
+ busyDialog(true, "Operation in progress", busytext);
+
+ // "run" really does nothing here since the previous item should still be running
+ if( iWinPackageView->isVisible() ) {
+ iAptInterface->run(iWinPackageView->mydimmer());
+ } else {
+ iAptInterface->run(iDimmer);
+ }
+ }
+ iNextOperation = OpNone;
+ return;
+ } else {
+ busyDialog(false);
+ iNextOperation = OpNone;
+
+ if( iSettings->qsettings()->value("sound_notify",false).toBool() )
+ {
+ qDebug() << "playing sound";
+ iMediaObject->setCurrentSource( Phonon::MediaSource(iSettings->qsettings()->value("sound_file","/usr/share/sounds/ui-operation_ready.wav").toString()) );
+ iMediaObject->play();
+ }
+
+ QString text = "<br><b><u>Faster Application Manager</u></b><br>"
+ "<b>"+title+"</b><br>" + msgs.join("<br>") + "<br>";
+
+ QRect r = QApplication::desktop()->rect();
+ if(r.width() < r.height()) {
+ ConfirmDialog d(false, dialogParent);
+ d.setText(title,msgs.join("<br>"));
+ d.exec();
+ } else {