[yast-commit] r60257 - in /trunk/packager: package/yast2-packager.changes src/modules/SourceDialogs.ycp src/modules/SourceManager.ycp
Author: lslezak
Date: Thu Jan 7 13:46:56 2010
New Revision: 60257
URL: http://svn.opensuse.org/viewcvs/yast?rev=60257&view=rev
Log:
- pass the selected CD/DVD device to the package manager in case
of multiple devices in the system (bnc#567403)
Modified:
trunk/packager/package/yast2-packager.changes
trunk/packager/src/modules/SourceDialogs.ycp
trunk/packager/src/modules/SourceManager.ycp
Modified: trunk/packager/package/yast2-packager.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=60257&r1=60256&r2=60257&view=diff
==============================================================================
--- trunk/packager/package/yast2-packager.changes (original)
+++ trunk/packager/package/yast2-packager.changes Thu Jan 7 13:46:56 2010
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Jan 7 12:16:03 UTC 2010 - lslezak@suse.cz
+
+- pass the selected CD/DVD device to the package manager in case
+ of multiple devices in the system (bnc#567403)
+
+-------------------------------------------------------------------
Wed Jan 6 17:48:18 UTC 2010 - lslezak@suse.cz
- do not reselect patterns which have been deselected by user
Modified: trunk/packager/src/modules/SourceDialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/SourceDialogs.ycp?rev=60257&r1=60256&r2=60257&view=diff
==============================================================================
--- trunk/packager/src/modules/SourceDialogs.ycp (original)
+++ trunk/packager/src/modules/SourceDialogs.ycp Thu Jan 7 13:46:56 2010
@@ -20,6 +20,7 @@
import "Label";
import "URL";
+import "URLRecode";
import "Popup";
import "CWM";
import "SourceManager";
@@ -57,6 +58,10 @@
*/
boolean _allow_https = true;
+// CD/DVD device name to use (e.g. /dev/sr1) in case of multiple
+// devices in the system. Empty string means use the default.
+string cd_device_name = "";
+
/**
* Help text suffix for some types of the media
*/
@@ -1854,8 +1859,21 @@
string msg = selected == `cd
? _("Insert the add-on product CD")
: _("Insert the add-on product DVD");
- if (! SourceManager::AskForCD (msg))
+
+ // reset the device name
+ cd_device_name = "";
+
+ // ask for a medium
+ map
participants (1)
-
lslezak@svn.opensuse.org