Hello community,
here is the log from the commit of package yast2 for openSUSE:Factory
checked in at Wed Apr 8 01:03:21 CEST 2009.
--------
--- yast2/yast2.changes 2009-03-26 18:55:29.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2/yast2.changes 2009-04-07 15:38:41.523494000 +0200
@@ -1,0 +2,18 @@
+Tue Apr 7 15:31:35 CEST 2009 - jreidinger@suse.cz
+
+- Add to CWM widget for unified table CWMTable
+- 2.18.14
+
+-------------------------------------------------------------------
+Fri Apr 3 13:26:58 CEST 2009 - lslezak@suse.cz
+
+- Do not display "No package source" popup, just log a warning
+ (bnc#485587)
+
+-------------------------------------------------------------------
+Fri Apr 3 12:29:54 CEST 2009 - jsrain@suse.cz
+
+- save_y2logs additionally collects /var/log/zypper.log and
+ /var/log/pk_backend_zypp
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-2.18.13.tar.bz2
New:
----
yast2-2.18.14.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.q27460/_old 2009-04-08 01:01:59.000000000 +0200
+++ /var/tmp/diff_new_pack.q27460/_new 2009-04-08 01:01:59.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2 (Version 2.18.13)
+# spec file for package yast2 (Version 2.18.14)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2
-Version: 2.18.13
+Version: 2.18.14
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-2.18.13.tar.bz2
+Source0: yast2-2.18.14.tar.bz2
Prefix: /usr
Source1: yast2-rpmlintrc
BuildRequires: perl-XML-Writer update-desktop-files yast2-devtools yast2-perl-bindings yast2-testsuite
@@ -147,7 +147,7 @@
Steffen Winterfeldt
%prep
-%setup -n yast2-2.18.13
+%setup -n yast2-2.18.14
%build
%{prefix}/bin/y2tool y2autoconf
@@ -251,6 +251,15 @@
%doc %{prefix}/share/doc/packages/yast2/types
%doc %{prefix}/share/doc/packages/yast2/wizard
%changelog
+* Tue Apr 07 2009 jreidinger@suse.cz
+- Add to CWM widget for unified table CWMTable
+- 2.18.14
+* Fri Apr 03 2009 lslezak@suse.cz
+- Do not display "No package source" popup, just log a warning
+ (bnc#485587)
+* Fri Apr 03 2009 jsrain@suse.cz
+- save_y2logs additionally collects /var/log/zypper.log and
+ /var/log/pk_backend_zypp
* Wed Mar 25 2009 lslezak@suse.cz
- Fixed layout of the authentication popup
* Tue Mar 17 2009 lslezak@suse.cz
@@ -463,7 +472,7 @@
* Mon Oct 06 2008 visnov@suse.cz
- Added icon to hardware detection confirmation (bnc #431276)
- 2.17.37
-* Thu Oct 02 2008 locilka@suse.cz
+* Fri Oct 03 2008 locilka@suse.cz
- Fixed Makefiles by using [[:upper:]]*.ycp where needed.
- 2.17.36
* Thu Oct 02 2008 locilka@suse.cz
@@ -1949,7 +1958,7 @@
* Mon Mar 13 2006 jsuchome@suse.cz
- fixed long buttons (#157420)
- 2.13.36
-* Fri Mar 10 2006 jsrain@suse.de
+* Sat Mar 11 2006 jsrain@suse.de
- store all installation options in /etc/YaST2/Productfeatures
(#156388)
- 2.13.35
@@ -4703,9 +4712,9 @@
- Short language description in inst_sw_select removed.
- fixed some parse errors
- added abuild parse check
-* Wed Aug 29 2001 kkaempf@suse.de
+* Thu Aug 30 2001 kkaempf@suse.de
- unmount wrong medium.
-* Wed Aug 29 2001 kkaempf@suse.de
+* Thu Aug 30 2001 kkaempf@suse.de
- always give all alternatives in ChangeCDPopup.
- always do a hard reboot after installation from first medium.
* Wed Aug 29 2001 kkaempf@suse.de
@@ -4810,7 +4819,7 @@
variable and write it to /etc/install.inf
* Thu Aug 02 2001 mike@suse.de
- taged version for 7.3 - preview 3
-* Tue Jul 31 2001 mike@suse.de
+* Wed Aug 01 2001 mike@suse.de
- first Version for RAID and partition proposal
(only for translation, dosn't work properly)
* Fri Jul 27 2001 kkaempf@suse.de
++++++ yast2-2.18.13.tar.bz2 -> yast2-2.18.14.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.18.13/library/cwm/src/CWMTable.ycp new/yast2-2.18.14/library/cwm/src/CWMTable.ycp
--- old/yast2-2.18.13/library/cwm/src/CWMTable.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-2.18.14/library/cwm/src/CWMTable.ycp 2009-04-02 15:07:53.000000000 +0200
@@ -0,0 +1,372 @@
+/**
+ * File: modules/CWMTable.ycp
+ * Package: Table dialogs backend
+ * Summary: Routines for Unified Table widget
+ * Authors: Josef Reidinger
+ *
+ * $Id: CWMTable.ycp
+ *
+ */
+
+{
+
+ module "CWMTable";
+ textdomain "base";
+
+ import "CWM";
+ import "Label";
+ import "Mode";
+ import "Report";
+
+
+// local functions
+
+/**
+ * Validate table options specifyign attributesA
+ * @param attr a map of table attributes
+ * @return boolean true if validation succeeded
+ */
+boolean ValidateTableAttr (map attr) {
+ map types = $[
+ "add_delete_buttons" : "boolean",
+ "edit_button" : "boolean",
+ "up_down_buttons" : "boolean",
+ "custom_button" : "boolean",
+ "custom_button_name" : "string",
+ "custom_handle" :"symbol(string,map)",
+ "header" : "term",
+ "add" : "symbol(string,map,integer)",
+ "edit" : "symbol(string,map,integer)",
+ "delete" : "symbol(string,map,integer)",
+ "updown" : "symbol(string,map,boolean,integer)",
+ ];
+ boolean ret = true;
+ foreach (string k, any v, attr, {
+ string type = (string)types[k]:nil;
+ if (type == nil)
+ {
+ y2error ("Unknown attribute %1", k);
+ ret = false;
+ }
+ else
+ {
+ ret = CWM::ValidateBasicType (v, type) && ret;
+ }
+ });
+ return ret;
+}
+
+
+/**
+ * Validate type of entry of the option description map
+ * Also checks option description maps if present
+ * @param key string key of the map entry
+ * @param value any value of the map entry
+ * @param widget any name of the widget/option
+ * @param popup boolean true if is option of a popup
+ * @return boolean true if validation succeeded
+ */
+boolean ValidateValueType (string key, any value, string widget) {
+ boolean success = true;
+ if (key == "help")
+ success = is (value, string);
+
+ if (! success)
+ y2error ("Wrong type of option %1 in description map of %2",
+ key, widget);
+
+ return success;
+}
+
+/**
+ * Validate the table description
+ * @param descr a map containing the table description
+ * @return boolean true if validation succeeded
+ */
+boolean ValidateTableDescr (string key, map descr) {
+ boolean ret = true;
+ foreach (string k, any v, descr, {
+ ret = ValidateValueType (k, v, key) && ret;
+ });
+ return ret;
+}
+
+string getItemId(term ter){
+ list<any> args = (list<any>)argsof(ter);
+ args = filter(any t, args, {
+ if (is(t,term) && (symbolof((term)t)==`id))
+ return true;
+ return false;
+ });
+ list<term>targs = (list<term>)args;
+ if (size(targs)==1){
+ return ((list<string>)argsof(targs[0]:nil))[0]:nil;
+ }
+ return nil;
+ }
+
+ /**
+ * Enable or disable the Delete and up/down buttons
+ * @param descr map table description map
+ * @param opt_descr map selected option description map
+ */
+ void updateButtons (map descr ) {
+ y2milestone("update buttons");
+ string id = (string)UI::QueryWidget (`id(`_tw_table), `CurrentItem);
+ list<term> item_list = (list<term>)UI::QueryWidget (`id(`_tw_table), `Items);
+ integer index = -1;
+ integer counter = 0;
+ integer max = item_list == nil ? 0 : size(item_list)-1;
+ foreach(term t, item_list, {
+ if (getItemId(t)==id)
+ index = counter;
+ counter=counter+1;
+ });
+ if (descr["_cwm_attrib", "up_down_buttons"]:false)
+ {
+ if (max < 1 || index==-1){
+ y2milestone("short list");
+ UI::ChangeWidget (`id (`_tw_up), `Enabled,false);
+ UI::ChangeWidget (`id (`_tw_down), `Enabled,false);
+ } else {
+ if ( index ==0){
+ y2milestone("first item");
+ UI::ChangeWidget (`id (`_tw_up), `Enabled, false);
+ UI::ChangeWidget (`id (`_tw_down), `Enabled, true);
+ } else if ( index == max){
+ y2milestone("last item");
+ UI::ChangeWidget (`id (`_tw_up), `Enabled, true);
+ UI::ChangeWidget (`id (`_tw_down), `Enabled, false);
+ } else {
+ UI::ChangeWidget (`id (`_tw_up), `Enabled, true);
+ UI::ChangeWidget (`id (`_tw_down), `Enabled, true);
+ }
+ }
+ } else {
+ UI::ChangeWidget (`id (`_tw_up), `Enabled,false);
+ UI::ChangeWidget (`id (`_tw_down), `Enabled,false);
+ }
+ }
+
+// functions
+
+
+ /**
+ * Initialize the displayed table
+ * @param descr map description map of the whole table
+ * @param key table widget key
+ */
+ global define void TableInit (map descr, string key) ``{
+ descr["_cwm_key"] = key;
+ }
+
+ /**
+ * Handle the event that happened on the table
+ * @param descr map description of the table
+ * @param key table widget key
+ * @param event_descr map event to handle
+ * @return symbol modified event if needed
+ */
+ symbol TableHandle (map descr, string key, map event_descr) {
+ any event_id = event_descr["ID"]:nil;
+ map attrib = descr["_cwm_attrib"]:$[];
+ symbol ret = nil;
+ string id = (string)UI::QueryWidget (`id(`_tw_table), `CurrentItem);
+ list<term> item_list = (list<term>)UI::QueryWidget (`id(`_tw_table), `Items);
+ integer index = -1;
+ integer counter = 0;
+ foreach(term t, item_list, {
+ if (getItemId(t)==id)
+ index = counter;
+ counter=counter+1;
+ });
+ if (event_id == `_tw_table)
+ {
+ if (event_descr["EventReason"]:"" == "Activated"
+ && event_descr["EventType"]:"" == "WidgetEvent"
+ && UI::WidgetExists (`id (`_tw_edit)))
+ {
+ event_id = `_tw_edit;
+ }
+ }
+ if (event_id == `_tw_edit)
+ {
+ symbol(string,map,integer) edit_handle = (symbol(string,map,integer))attrib["edit"]:nil;
+ if (edit_handle != nil){
+ ret = edit_handle(key,event_descr,index);
+ }
+ } else if (event_id == `_tw_add)
+ {
+ symbol(string,map,integer) add_handle = (symbol(string,map,integer))attrib["add"]:nil;
+ if (add_handle != nil){
+ ret = add_handle(key,event_descr,index);
+ }
+ }
+ else if (event_id == `_tw_delete)
+ {
+ symbol(string,map,integer) delete_handle = (symbol(string,map,integer))attrib["delete"]:nil;
+ if (delete_handle != nil){
+ ret = delete_handle(key,event_descr,index);
+ }
+ }
+ else if (event_id == `_tw_custom)
+ {
+ symbol(string,map,integer) custom_handle = (symbol(string,map,integer))attrib["custom_handle"]:nil;
+ if (custom_handle != nil){
+ ret = custom_handle(key,event_descr,index);
+ }
+ }
+ else if (event_id == `_tw_up || event_id == `_tw_down)
+ {
+ boolean up = event_id==`_tw_up;
+ symbol(string,map,boolean,integer) updown_handle = (symbol(string,map,boolean,integer))attrib["updown"]:nil;
+ if (updown_handle != nil &&
+ !(index==0 && up) &&
+ !(index==size(item_list)-1 && !up)){
+ ret = updown_handle(key,event_descr,up,index);
+ if (ret == nil){
+ UI::ChangeWidget(`id(`_tw_table), `CurrentItem, id);
+ }
+ }
+ }
+ updateButtons (descr);
+ return ret;
+ }
+
+ /**
+ * Disable whole table
+ * @param descr map table widget description map
+ */
+ global define void DisableTable (map descr) ``{
+ UI::ChangeWidget (`id (`_tw_table), `Enabled, false);
+ if (descr["_cwm_attrib", "edit_button"]:true)
+ {
+ UI::ChangeWidget (`id (`_tw_edit), `Enabled, false);
+ }
+ if (descr["_cwm_attrib", "add_delete_buttons"]:true)
+ {
+ UI::ChangeWidget (`id (`_tw_delete), `Enabled, false);
+ UI::ChangeWidget (`id (`_tw_add), `Enabled, false);
+ }
+ if (descr["_cwm_attrib", "up_down_buttons"]:false)
+ {
+ UI::ChangeWidget (`id (`_tw_up), `Enabled, false);
+ UI::ChangeWidget (`id (`_tw_down), `Enabled, false);
+ }
+ if (descr["_cwm_attrib", "custom_button"]:false)
+ {
+ UI::ChangeWidget (`id (`_tw_custom), `Enabled, false);
+ }
+ }
+
+ /**
+ * Enable whole table (except buttons that should be grayed according to
+ * currently selected table row
+ * @param descr map table widget description map
+ */
+ global define void EnableTable (map descr) ``{
+ UI::ChangeWidget (`id (`_tw_table), `Enabled, true);
+ if (descr["_cwm_attrib", "edit_button"]:true)
+ {
+ UI::ChangeWidget (`id (`_tw_edit), `Enabled, true);
+ }
+ if (descr["_cwm_attrib", "add_delete_buttons"]:true)
+ {
+ UI::ChangeWidget (`id (`_tw_add), `Enabled, true);
+ }
+ if (descr["_cwm_attrib", "custom_button"]:false)
+ {
+ UI::ChangeWidget (`id (`_tw_custom), `Enabled, true);
+ }
+ TableHandle(descr,"",$[]);
+ }
+ /**
+ * Wrapper for TableInit using CWM::GetProcessedWidget () for getting
+ * widget description map
+ * @param key any widget key
+ */
+ global define void TableInitWrapper (string key) ``{
+ TableInit (CWM::GetProcessedWidget (), key);
+ }
+
+ /**
+ * Wrapper for TableHandle using CWM::GetProcessedWidget () for getting
+ * widget description map
+ * @param key any widget key
+ * @param event_descr map event description map
+ * @return symbol return value for wizard sequencer or nil
+ */
+ global define symbol TableHandleWrapper (string key, map event_descr) ``{
+ return TableHandle(CWM::GetProcessedWidget (), key, event_descr);
+ }
+
+ /**
+ * Get the map with the table widget
+ * @param attrib map table attributes
+ * @param widget_descr map widget description map of the table, will be
+ * unioned with the generated map
+ * @return map table widget
+ */
+ global define map CreateTableDescr (map attrib, map widget_descr) ``{
+ ValidateTableAttr (attrib);
+ term add_button = attrib["add_delete_buttons"]:true
+ ? `PushButton (`id (`_tw_add), `opt (`key_F3,`notify), Label::AddButton ())
+ : `HSpacing (0);
+ term edit_button = attrib["edit_button"]:true
+ ? `PushButton (`id (`_tw_edit), `opt (`key_F4,`notify), Label::EditButton ())
+ : `HSpacing (0);
+ term delete_button = attrib["add_delete_buttons"]:true
+ ? `PushButton (`id (`_tw_delete), `opt (`key_F5,`notify), Label::DeleteButton ())
+ : `HSpacing (0);
+ term table_header = (term)attrib["header"]:nil;
+
+ term custom_button = attrib["custom_button"]:false
+ ? `PushButton (`id (`_tw_custom), `opt (`notify), attrib["custom_button_name"]:"Custom button")
+ : `HSpacing (0);
+
+ term up_down = attrib["up_down_buttons"]:false
+ ? `VBox (
+ `VStretch (),
+ // push button
+ `PushButton (`id (`_tw_up), `opt(`notify,`immediate), _("&Up")),
+ // push button
+ `PushButton (`id (`_tw_down), `opt(`notify,`immediate), _("&Down")),
+ `VStretch ()
+ )
+ : `HSpacing (0);
+
+ map ret = (map)union ($[
+ "custom_widget" : (`HBox (`HSpacing (2), `VBox (
+ `HBox (
+ `Table (`id (`_tw_table),
+ `opt (`immediate, `notify,`keepSorting),
+ table_header,
+ []),
+ up_down
+ ),
+ `HBox (
+ add_button,
+ edit_button,
+ delete_button,
+ `HStretch (),
+ custom_button
+ )
+ ), `HSpacing (2))),
+ "_cwm_attrib" : attrib,
+ "widget" : `custom,
+ "_cwm_do_validate" : ValidateTableDescr,
+ ], widget_descr);
+
+ if (! haskey (ret, "init"))
+ {
+ ret["init"] = CWMTable::TableInitWrapper;
+ }
+ if (! haskey (ret, "handle"))
+ {
+ ret["handle"] = CWMTable::TableHandleWrapper;
+ }
+
+ return ret;
+ }
+
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.18.13/library/cwm/src/Makefile.am new/yast2-2.18.14/library/cwm/src/Makefile.am
--- old/yast2-2.18.13/library/cwm/src/Makefile.am 2008-09-24 13:34:38.000000000 +0200
+++ new/yast2-2.18.14/library/cwm/src/Makefile.am 2009-03-30 09:55:09.000000000 +0200
@@ -7,6 +7,7 @@
TablePopup.ycp \
DialogTree.ycp \
CWMTab.ycp \
+ CWMTable.ycp \
CWMServiceStart.ycp \
CWMTsigKeys.ycp \
WizardHW.ycp
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.18.13/library/cwm/src/Makefile.in new/yast2-2.18.14/library/cwm/src/Makefile.in
--- old/yast2-2.18.13/library/cwm/src/Makefile.in 2009-03-26 18:54:51.000000000 +0100
+++ new/yast2-2.18.14/library/cwm/src/Makefile.in 2009-03-30 11:01:55.000000000 +0200
@@ -185,6 +185,7 @@
TablePopup.ycp \
DialogTree.ycp \
CWMTab.ycp \
+ CWMTable.ycp \
CWMServiceStart.ycp \
CWMTsigKeys.ycp \
WizardHW.ycp
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.18.13/library/modules/Version.ycp new/yast2-2.18.14/library/modules/Version.ycp
--- old/yast2-2.18.13/library/modules/Version.ycp 2009-03-26 18:54:58.000000000 +0100
+++ new/yast2-2.18.14/library/modules/Version.ycp 2009-04-07 15:33:39.000000000 +0200
@@ -20,7 +20,7 @@
/**
* Version of the yast2 package
*/
-global string yast2 = "2.18.13";
+global string yast2 = "2.18.14";
/* EOF */
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.18.13/library/packages/src/PackageSystem.ycp new/yast2-2.18.14/library/packages/src/PackageSystem.ycp
--- old/yast2-2.18.13/library/packages/src/PackageSystem.ycp 2008-12-17 15:23:43.000000000 +0100
+++ new/yast2-2.18.14/library/packages/src/PackageSystem.ycp 2009-04-07 15:30:38.000000000 +0200
@@ -6,7 +6,7 @@
* Michal Svec
* Flags: Stable
*
- * $Id: PackageSystem.ycp 54241 2008-12-17 14:23:43Z lslezak $
+ * $Id: PackageSystem.ycp 56617 2009-04-03 11:55:57Z lslezak $
*
* The documentation is maintained at
* <a href="../index.html">.../docs/index.html</a>.
@@ -86,11 +86,10 @@
{
source_initialized = true;
}
- // ignore the problem when installing from LiveCD - all sources are disabled
- else if (!Mode::live_installation())
+ else
{
- /* Error message, no packages sources found */
- Report::Error(_("No package source defined."));
+ // all repositories are disabled or no repository defined
+ y2warning("No package repository available");
}
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.18.13/scripts/save_y2logs new/yast2-2.18.14/scripts/save_y2logs
--- old/yast2-2.18.13/scripts/save_y2logs 2008-12-03 14:43:45.000000000 +0100
+++ new/yast2-2.18.14/scripts/save_y2logs 2009-04-07 15:30:38.000000000 +0200
@@ -65,6 +65,14 @@
LIST="$LIST /var/log/Xorg.0.log"
fi
+if [ -f /var/log/zypper.log ]; then
+ LIST="$LIST /var/log/zypper.log"
+fi
+
+if [ -f /var/log/pk_backend_zypp ]; then
+ LIST="$LIST /var/log/pk_backend_zypp"
+fi
+
RPM_LIST="rpm-qa"
if [ -f /var/lib/rpm/Packages ]; then
rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE}\t\t\t(%{VENDOR})\t%{DISTRIBUTION}\n' 2>/dev/null | sort >/var/log/$RPM_LIST
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.18.13/VERSION new/yast2-2.18.14/VERSION
--- old/yast2-2.18.13/VERSION 2009-03-06 12:16:47.000000000 +0100
+++ new/yast2-2.18.14/VERSION 2009-04-07 15:31:17.000000000 +0200
@@ -1 +1 @@
-2.18.13
+2.18.14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org