[haiku-commits] haiku: hrev53176 - in src: apps/haikudepot/model bin/pkgman

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 1 Jun 2019 17:51:49 -0400 (EDT)

hrev53176 adds 2 changesets to branch 'master'
old head: 86d552aca261c128c6fd628da73f043229adc13e
new head: b22a59f226b21ff0241b57baa8ca83c2e77b373e
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=b22a59f226b2+%5E86d552aca261

----------------------------------------------------------------------------

63ba21d50692: pkgman: Inform the user when a reboot is required to complete 
installation.
  
  Fixes #14783 following on hrev53005.

b22a59f226b2: HaikuDepot: Notify the user when a reboot is necessary to 
complete installation.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

2 files changed, 13 insertions(+)
src/apps/haikudepot/model/PackageManager.cpp | 10 ++++++++++
src/bin/pkgman/PackageManager.cpp            |  3 +++

############################################################################

Commit:      63ba21d50692ae46b0fdd4fd320b34907634a4ec
URL:         https://git.haiku-os.org/haiku/commit/?id=63ba21d50692
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Sat Jun  1 20:19:55 2019 UTC

Ticket:      https://dev.haiku-os.org/ticket/14783

pkgman: Inform the user when a reboot is required to complete installation.

Fixes #14783 following on hrev53005.

----------------------------------------------------------------------------

diff --git a/src/bin/pkgman/PackageManager.cpp 
b/src/bin/pkgman/PackageManager.cpp
index 35bd011415..ba2ffcaef4 100644
--- a/src/bin/pkgman/PackageManager.cpp
+++ b/src/bin/pkgman/PackageManager.cpp
@@ -322,6 +322,9 @@ void
 PackageManager::ProgressApplyingChangesDone(InstalledRepository& repository)
 {
        printf("[%s] Done.\n", repository.Name().String());
+
+       if (BPackageRoster().IsRebootNeeded())
+               printf("A reboot is necessary to complete the installation 
process.\n");
 }
 
 

############################################################################

Revision:    hrev53176
Commit:      b22a59f226b21ff0241b57baa8ca83c2e77b373e
URL:         https://git.haiku-os.org/haiku/commit/?id=b22a59f226b2
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Sat Jun  1 21:49:32 2019 UTC

HaikuDepot: Notify the user when a reboot is necessary to complete installation.

----------------------------------------------------------------------------

diff --git a/src/apps/haikudepot/model/PackageManager.cpp 
b/src/apps/haikudepot/model/PackageManager.cpp
index e94e3499c3..c9703c88d1 100644
--- a/src/apps/haikudepot/model/PackageManager.cpp
+++ b/src/apps/haikudepot/model/PackageManager.cpp
@@ -816,6 +816,16 @@ 
PackageManager::ProgressApplyingChangesDone(InstalledRepository& repository)
 {
        for (int32 i = 0; i < fPackageProgressListeners.CountItems(); i++)
                
fPackageProgressListeners.ItemAt(i)->ApplyingChangesDone(repository);
+
+       if (BPackageRoster().IsRebootNeeded()) {
+               BString infoString(B_TRANSLATE("A reboot is necessary to 
complete the "
+                       "installation process."));
+               BAlert* alert = new(std::nothrow) BAlert(B_TRANSLATE("Reboot 
required"),
+                       infoString, B_TRANSLATE("Close"), NULL, NULL,
+                       B_WIDTH_AS_USUAL, B_INFO_ALERT);
+               if (alert != NULL)
+                       alert->Go();
+       }
 }
 
 


Other related posts:

  • » [haiku-commits] haiku: hrev53176 - in src: apps/haikudepot/model bin/pkgman - waddlesplash