Author: jsmeix
Date: Wed Oct 8 16:30:57 2008
New Revision: 51991
URL: http://svn.opensuse.org/viewcvs/yast?rev=51991&view=rev
Log:
Check if the cups-client RPM is installed
(strictly required) and if the cups RPM is
installed (recommended but not strictly required).
Prefer 'hp:/usb/' DeviceURIs by default.
The matching 'usb://HP/' is still available
via "More Connections".
Modified:
trunk/printer/src/Printer.ycp
trunk/printer/src/Printerlib.ycp
Modified: trunk/printer/src/Printer.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/src/Printer.ycp?rev=51991&r1=51990&r2=51991&view=diff
==============================================================================
--- trunk/printer/src/Printer.ycp (original)
+++ trunk/printer/src/Printer.ycp Wed Oct 8 16:30:57 2008
@@ -602,19 +602,38 @@
Progress::New( // Header of a Progress::New:
_("Initializing Printer Configuration"),
" ",
- 1,
+ 2,
[ // 1. progress stage name of a Progress::New:
- _("Autodetect already configured printers"),
+ _("Check installed packages"),
+ // 2. progress stage name of a Progress::New:
+ _("Determine basic print system settings")
],
[ // 1. progress step progress bar title of a Progress::New:
- _("Autodetecting already configured printers..."),
+ _("Checking installed packages..."),
+ // 2. progress step progress bar title of a Progress::New:
+ _("Determining basic print system settings..."),
// Last progress step progress bar title of a Progress::New:
_("Finished")
],
""
);
- // Progress 1. stage (Autodetect already configured printers):
+ // Progress 1. stage (Check installed packages):
if( Abort() ) return false;
+ // The cups-client RPM is the minimum requirement
+ // for accessing remote CUPS servers via a "client-only" config.
+ // Therefore abort (return false) if cups-client is not installed:
+ if( ! Printerlib::TestAndInstallPackage( "cups-client" ) )
+ { return false;
+ }
+ // The cups RPM ist the default requirement
+ // for accessing remote CUPS servers via CUPS Browsing
+ // and it is the minimum requirement for local print queues.
+ // Therefore try to install cups but because for a "client-only" config
+ // only cups-client is required, proceed even if cups is not installed:
+ Printerlib::TestAndInstallPackage( "cups" );
+ // Progress 2. stage (Determine basic print system settings):
+ if( Abort() ) return false;
+ Progress::NextStage();
// Only in the second stage of the system installation make sure that a local cupsd is running
// because it is needed for automated queue setup during system installation
// see https://bugzilla.novell.com/show_bug.cgi?id=418585
@@ -875,6 +894,16 @@
// which is needed here to preserve any entry to be on the safe side:
connections = (list