Author: jsmeix
Date: Wed Mar 10 17:12:04 2010
New Revision: 61239
URL: http://svn.opensuse.org/viewcvs/yast?rev=61239&view=rev
Log:
- Avoid bnc#582680 "sometimes no cupsd accessible on localhost
while cloning the system" by no longer calling
AutodetectQueues (and Printerlib::DetermineClientOnly)
in Printer::Export because their results are currently
not used in the "Export" map (currently it contains only
the content of the system config files /etc/cups/client.conf
and /etc/cups/cupsd.conf).
- 2.17.63
Modified:
branches/SuSE-Code-11-SP1-Branch/printer/VERSION
branches/SuSE-Code-11-SP1-Branch/printer/package/yast2-printer.changes
branches/SuSE-Code-11-SP1-Branch/printer/src/Printer.ycp
branches/SuSE-Code-11-SP1-Branch/printer/src/printer_auto.ycp
Modified: branches/SuSE-Code-11-SP1-Branch/printer/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/printer/VERSION?rev=61239&r1=61238&r2=61239&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/printer/VERSION (original)
+++ branches/SuSE-Code-11-SP1-Branch/printer/VERSION Wed Mar 10 17:12:04 2010
@@ -1 +1 @@
-2.17.62
+2.17.63
Modified: branches/SuSE-Code-11-SP1-Branch/printer/package/yast2-printer.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/printer/package/yast2-printer.changes?rev=61239&r1=61238&r2=61239&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/printer/package/yast2-printer.changes (original)
+++ branches/SuSE-Code-11-SP1-Branch/printer/package/yast2-printer.changes Wed Mar 10 17:12:04 2010
@@ -1,4 +1,16 @@
-------------------------------------------------------------------
+Wed Mar 10 16:42:52 CET 2010 - jsmeix@suse.de
+
+- Avoid bnc#582680 "sometimes no cupsd accessible on localhost
+ while cloning the system" by no longer calling
+ AutodetectQueues (and Printerlib::DetermineClientOnly)
+ in Printer::Export because their results are currently
+ not used in the "Export" map (currently it contains only
+ the content of the system config files /etc/cups/client.conf
+ and /etc/cups/cupsd.conf).
+- 2.17.63
+
+-------------------------------------------------------------------
Mon Mar 1 14:00:30 CET 2010 - mzugec@suse.de
- fixed creating valid autoyast profile (bnc#583565)
Modified: branches/SuSE-Code-11-SP1-Branch/printer/src/Printer.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/printer/src/Printer.ycp?rev=61239&r1=61238&r2=61239&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/printer/src/Printer.ycp (original)
+++ branches/SuSE-Code-11-SP1-Branch/printer/src/Printer.ycp Wed Mar 10 17:12:04 2010
@@ -51,6 +51,12 @@
global boolean modified = false;
/**
+ * Set by AutoYaST by calling in printer_auto.ycp the "SetModified" function.
+ * Preset to false which is the right default for AutoYast.
+ */
+global boolean printer_auto_modified = false;
+
+/**
*/
global boolean proposal_valid = false;
@@ -1926,10 +1932,15 @@
}
/**
- * Get all printer settings from the first parameter
- * (For use by autoinstallation.)
- * @param settings The YCP structure to be imported.
- * @return boolean True on success
+ * Write printer settings according to the parameter settings map which
+ * contains a "cups_remote_server" sub-map and a "server_settings" sub-map
+ * via Printerlib::WriteClientSettings to /etc/cups/client.conf and
+ * via Printerlib::WriteCupsSettings to /etc/cups/cupsd.conf
+ * where empty sub-maps result empty system config files.
+ * For use by autoinstallation (called in printer_auto.ycp) and
+ * also called in printer_proposal.ycp in its "AskUser" function.
+ * @param settings The YCP map to be imported.
+ * @return boolean True in any case.
*/
global boolean Import (map settings) {
Printerlib::WriteClientSettings(settings["cups_remote_server"]:$[]);
@@ -1938,34 +1949,25 @@
}
/**
- * Dump the printer settings to a single map
- * (For use by autoinstallation.)
- * @return map Dumped settings (later acceptable by Import ())
+ * Dump printer settings to a single map which contains
+ * the cupsd.conf entries in a "server_settings" sub-map and
+ * the client.conf entries in a "cups_remote_server" sub-map.
+ * For use by autoinstallation (called in printer_auto.ycp) and
+ * also called in printer_proposal.ycp in its "AskUser" function.
+ * @return map Dumped settings (later acceptable by Printer::Import(map) )
*/
global map Export () {
- Printerlib::DetermineClientOnly();
- Printer::AutodetectQueues();
- list <map> p_queues = filter(map queue, Printer::queues, { return (queue["config"]:""=="local"); });
+// Printerlib::DetermineClientOnly();
+// Printer::AutodetectQueues();
+// list <map> p_queues = filter(map queue, Printer::queues, { return (queue["config"]:""=="local"); });
map exp = $[
// "queues" : p_queues,
// "filters" : Printerlib::ExportFilters( p_queues ),
"server_settings" : (map)SCR::Read(.cups.server),
"cups_remote_server" : (map)SCR::Read(.cups.client)
];
-//y2internal("export %1", exp);
return exp;
}
-/**
- * Return packages needed to be installed and removed during
- * Autoinstallation to insure module has all needed software
- * installed.
- * @return map with 2 lists.
- */
-global map AutoPackages() {
- // TODO FIXME: your code here...
- return $[ "install":[], "remove":[] ];
-}
-
/* EOF */
}
Modified: branches/SuSE-Code-11-SP1-Branch/printer/src/printer_auto.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/printer/src/printer_auto.ycp?rev=61239&r1=61238&r2=61239&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/printer/src/printer_auto.ycp (original)
+++ branches/SuSE-Code-11-SP1-Branch/printer/src/printer_auto.ycp Wed Mar 10 17:12:04 2010
@@ -22,7 +22,8 @@
* File: clients/printer_auto.ycp
* Package: Configuration of printer
* Summary: Client for autoinstallation
- * Authors: Johannes Meixner