File restart_cupsd_when_driver_RPMs_changed.diff of Package yast2-printer

--- src/include/printer/driveradd.rb.orig	2013-11-25 14:45:24.000000000 +0100
+++ src/include/printer/driveradd.rb	2014-08-01 12:08:21.633155904 +0200
@@ -642,6 +642,11 @@ module Yast
           if package_changed
             Printer.ppds = []
             Printer.connections = []
+            # Show the "Restart locally running CUPS daemon" user confirmation popup
+            # because usually a change in printer driver RPMs (installation or removal)
+            # changes print job processing which requires a restart of cupsd,
+            # see https://bugzilla.novell.com/show_bug.cgi?id=888782
+            Printerlib.GetAndSetCupsdStatus("restart")
             # There is no "abort" functionality which does a sudden death of the whole module (see dialogs.ycp).
             # Unfortunately when the YaST package installer is run via Printerlib::TestAndInstallPackage
             # it leaves a misused "abort" button labeled "Skip Autorefresh" with WidgetID "`abort"
openSUSE Build Service is sponsored by