Hello community,
here is the log from the commit of package yast2-iscsi-client
checked in at Tue Mar 11 19:00:16 CET 2008.
--------
--- yast2-iscsi-client/yast2-iscsi-client.changes 2008-03-10 11:17:39.000000000 +0100
+++ /mounts/work_src_done/NOARCH/yast2-iscsi-client/yast2-iscsi-client.changes 2008-03-11 18:25:33.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Mar 10 18:20:19 CET 2008 - mzugec@suse.de
+
+- show initiatorname tab as default during installation (bnc#368644)
+- 2.16.7
+
+-------------------------------------------------------------------
Old:
----
yast2-iscsi-client-2.16.6.tar.bz2
New:
----
yast2-iscsi-client-2.16.7.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-iscsi-client.spec ++++++
--- /var/tmp/diff_new_pack.W28531/_old 2008-03-11 18:59:06.000000000 +0100
+++ /var/tmp/diff_new_pack.W28531/_new 2008-03-11 18:59:06.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-iscsi-client (Version 2.16.6)
+# spec file for package yast2-iscsi-client (Version 2.16.7)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,12 +12,12 @@
Name: yast2-iscsi-client
-Version: 2.16.6
+Version: 2.16.7
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-iscsi-client-2.16.6.tar.bz2
+Source0: yast2-iscsi-client-2.16.7.tar.bz2
Prefix: /usr
BuildRequires: docbook-xsl-stylesheets doxygen libicu-devel libxslt perl-XML-Writer popt-devel sgml-skel update-desktop-files yast2 yast2-devtools yast2-packagemanager-devel yast2-perl-bindings yast2-testsuite
Requires: yast2 yast2-packager
@@ -30,7 +30,7 @@
%prep
-%setup -n yast2-iscsi-client-2.16.6
+%setup -n yast2-iscsi-client-2.16.7
%build
%{prefix}/bin/y2tool y2autoconf
@@ -67,6 +67,9 @@
%doc %{prefix}/share/doc/packages/yast2-iscsi-client
%changelog
* Mon Mar 10 2008 mzugec@suse.de
+- show initiatorname tab as default during installation (bnc#368644)
+- 2.16.7
+* Mon Mar 10 2008 mzugec@suse.de
- fixed autoyast problem (bnc#367300)
- 2.16.6
* Tue Feb 19 2008 mzugec@suse.de
++++++ yast2-iscsi-client-2.16.6.tar.bz2 -> yast2-iscsi-client-2.16.7.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-client-2.16.6/src/dialogs.ycp new/yast2-iscsi-client-2.16.7/src/dialogs.ycp
--- old/yast2-iscsi-client-2.16.6/src/dialogs.ycp 2008-03-10 11:55:25.000000000 +0100
+++ new/yast2-iscsi-client-2.16.7/src/dialogs.ycp 2008-03-10 18:23:39.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: Dialogs definitions
* Authors: Michal Zugec
*
- * $Id: dialogs.ycp 44547 2008-02-15 16:23:25Z mzugec $
+ * $Id: dialogs.ycp 45359 2008-03-11 17:21:12Z mzugec $
*/
{
@@ -289,7 +289,7 @@
"tab_order": tab_order,
"tabs": tabs_descr,
"widget_descr": widgets,
- "initial_tab" : (Stage::initial()) ? "client" : current_tab,
+ "initial_tab" : (Stage::initial()) ? "general" : current_tab,
"tab_help" : _("<h1>iSCSI Initiator</h1>"),
]),
];
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-client-2.16.6/src/IscsiClientLib.ycp new/yast2-iscsi-client-2.16.7/src/IscsiClientLib.ycp
--- old/yast2-iscsi-client-2.16.6/src/IscsiClientLib.ycp 2008-03-10 11:55:25.000000000 +0100
+++ new/yast2-iscsi-client-2.16.7/src/IscsiClientLib.ycp 2008-03-10 18:16:04.000000000 +0100
@@ -4,6 +4,7 @@
import "Service";
import "Popup";
+import "Hostname";
global list <string> sessions = [];
global list <string> discovered = [];
@@ -242,6 +243,20 @@
return ret;
}
+string getReverseDomainName(){
+list<string> host_fq = Hostname::SplitFQ(((map)SCR::Execute(.target.bash_output, "hostname -f|tr -d '\n'"))["stdout"]:"");
+y2internal("hostfw%1", host_fq);
+string domain = "";
+
+foreach(string item, splitstring(host_fq[1]:"example.com", "."),{
+ y2internal("item %1", item);
+ domain = (size(domain)==0) ? item : sformat("%1.%2", item, domain);
+});
+
+ y2milestone("domain %1", domain);
+ return domain;
+}
+
// check initiatorname if exist, if no - create it
global boolean checkInitiatorName(){
boolean ret=true;
@@ -252,9 +267,10 @@
y2milestone("%1 is empty or doesnt exists - replace with name stored in iBFT", file);
initiatorname = name_from_bios;
} else {
- y2milestone("InitiatorNmae does not exist - generate it");
+ y2milestone("InitiatorName does not exist - generate it");
+ string domain = ((map)SCR::Execute(.target.bash_output, ""))["stdout"]:"com.example";
map output = (map)SCR::Execute (.target.bash_output,
- "/sbin/iscsi-iname -p iqn.`date +%Y-%m`.de.suse:01 | tr -d '\n'", $[]);
+ sformat("/sbin/iscsi-iname -p iqn.%1.%2:01 | tr -d '\n'","`date +%Y-%m`", getReverseDomainName()), $[]);
if (size(output["stderr"]:"")==0){
initiatorname=output["stdout"]:"";
} else ret = false;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-client-2.16.6/src/IscsiClient.ycp new/yast2-iscsi-client-2.16.7/src/IscsiClient.ycp
--- old/yast2-iscsi-client-2.16.6/src/IscsiClient.ycp 2008-03-10 12:07:16.000000000 +0100
+++ new/yast2-iscsi-client-2.16.7/src/IscsiClient.ycp 2008-03-10 13:50:25.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: IscsiClient settings, input and output functions
* Authors: Michal Zugec
*
- * $Id: IscsiClient.ycp 45321 2008-03-10 10:03:35Z mzugec $
+ * $Id: IscsiClient.ycp 45352 2008-03-11 12:48:01Z mzugec $
*
* Representation of the configuration of iscsi-client.
* Input and output routines.
@@ -82,7 +82,8 @@
// check if package open-iscsi is installed
boolean installed_packages(){
// don't check interactively for packages (bnc#367300)
- if(Stage::cont()) return true;
+ // skip it during second stage or when create AY profile
+ if(Stage::cont() || Mode::config()) return true;
y2milestone("Check if open-iscsi package installed");
boolean ret = false;
if( !Package::InstallMsg( "open-iscsi",
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-client-2.16.6/VERSION new/yast2-iscsi-client-2.16.7/VERSION
--- old/yast2-iscsi-client-2.16.6/VERSION 2008-03-10 12:01:52.000000000 +0100
+++ new/yast2-iscsi-client-2.16.7/VERSION 2008-03-10 18:20:17.000000000 +0100
@@ -1 +1 @@
-2.16.6
+2.16.7
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org