Hello community,
here is the log from the commit of package yast2
checked in at Wed Jul 9 15:11:33 CEST 2008.
--------
--- yast2/yast2.changes 2008-07-01 17:49:12.000000000 +0200
+++ yast2/yast2.changes 2008-07-08 11:34:01.000000000 +0200
@@ -1,0 +2,20 @@
+Tue Jul 8 11:28:39 CEST 2008 - locilka@suse.cz
+
+- By default, firewall packages are just checked whether they are
+ installed. CWM Firewall Interfaces does not offer to install them
+ (bnc #388773).
+- 2.17.6
+
+-------------------------------------------------------------------
+Mon Jul 7 17:05:37 CEST 2008 - locilka@suse.cz
+
+- Dropped deprecated functions from Wizard module:
+ ReplaceNextButton, ReplaceBackButton, ReplaceAbortButton.
+- Added more documentation (examples).
+
+-------------------------------------------------------------------
+Sun Jul 6 22:18:42 CEST 2008 - mzugec@suse.de
+
+- possibility to disable FileChanges popup (bnc#383718)
+
+-------------------------------------------------------------------
Old:
----
yast2-2.17.5.tar.bz2
New:
----
yast2-2.17.6.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.K29789/_old 2008-07-09 15:10:32.000000000 +0200
+++ /var/tmp/diff_new_pack.K29789/_new 2008-07-09 15:10:32.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2 (Version 2.17.5)
+# spec file for package yast2 (Version 2.17.6)
#
# 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
-Version: 2.17.5
+Version: 2.17.6
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-2.17.5.tar.bz2
+Source0: yast2-2.17.6.tar.bz2
Prefix: /usr
Source1: yast2-rpmlintrc
BuildRequires: perl-XML-Writer update-desktop-files yast2-devtools yast2-perl-bindings yast2-testsuite
@@ -141,7 +141,7 @@
Steffen Winterfeldt
%prep
-%setup -n yast2-2.17.5
+%setup -n yast2-2.17.6
%build
%{prefix}/bin/y2tool y2autoconf
@@ -244,7 +244,19 @@
%doc %{prefix}/share/doc/packages/yast2/system
%doc %{prefix}/share/doc/packages/yast2/types
%doc %{prefix}/share/doc/packages/yast2/wizard
+
%changelog
+* Tue Jul 08 2008 locilka@suse.cz
+- By default, firewall packages are just checked whether they are
+ installed. CWM Firewall Interfaces does not offer to install them
+ (bnc #388773).
+- 2.17.6
+* Mon Jul 07 2008 locilka@suse.cz
+- Dropped deprecated functions from Wizard module:
+ ReplaceNextButton, ReplaceBackButton, ReplaceAbortButton.
+- Added more documentation (examples).
+* Mon Jul 07 2008 mzugec@suse.de
+- possibility to disable FileChanges popup (bnc#383718)
* Tue Jul 01 2008 mzugec@suse.de
- new function is NetworkService::Networkv6Running()
- rewrite IP/PREFIXLEN for aliases in NetworkInterfaces
++++++ yast2-2.17.5.tar.bz2 -> yast2-2.17.6.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/configure new/yast2-2.17.6/configure
--- old/yast2-2.17.5/configure 2008-07-01 19:22:45.000000000 +0200
+++ new/yast2-2.17.6/configure 2008-07-08 16:11:09.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2 2.17.4.
+# Generated by GNU Autoconf 2.61 for yast2 2.17.6.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -574,8 +574,8 @@
# Identity of this package.
PACKAGE_NAME='yast2'
PACKAGE_TARNAME='yast2'
-PACKAGE_VERSION='2.17.4'
-PACKAGE_STRING='yast2 2.17.4'
+PACKAGE_VERSION='2.17.6'
+PACKAGE_STRING='yast2 2.17.6'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1199,7 +1199,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2 2.17.4 to adapt to many kinds of systems.
+\`configure' configures yast2 2.17.6 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1270,7 +1270,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2 2.17.4:";;
+ short | recursive ) echo "Configuration of yast2 2.17.6:";;
esac
cat <<\_ACEOF
@@ -1348,7 +1348,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2 configure 2.17.4
+yast2 configure 2.17.6
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1362,7 +1362,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2 $as_me 2.17.4, which was
+It was created by yast2 $as_me 2.17.6, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2183,7 +2183,7 @@
# Define the identity of the package.
PACKAGE='yast2'
- VERSION='2.17.4'
+ VERSION='2.17.6'
cat >>confdefs.h <<_ACEOF
@@ -2411,7 +2411,7 @@
-VERSION="2.17.4"
+VERSION="2.17.6"
RPMNAME="yast2"
MAINTAINER="Jiri Srain "
@@ -3412,7 +3412,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2 $as_me 2.17.4, which was
+This file was extended by yast2 $as_me 2.17.6, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -3455,7 +3455,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2 config.status 2.17.4
+yast2 config.status 2.17.6
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/configure.in new/yast2-2.17.6/configure.in
--- old/yast2-2.17.5/configure.in 2008-07-01 19:22:33.000000000 +0200
+++ new/yast2-2.17.6/configure.in 2008-07-08 16:11:07.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.17.0 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2, 2.17.4, http://bugs.opensuse.org/, yast2)
+AC_INIT(yast2, 2.17.6, http://bugs.opensuse.org/, yast2)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.17.4"
+VERSION="2.17.6"
RPMNAME="yast2"
MAINTAINER="Jiri Srain "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/library/modules/Version.ycp new/yast2-2.17.6/library/modules/Version.ycp
--- old/yast2-2.17.5/library/modules/Version.ycp 2008-07-01 17:48:02.000000000 +0200
+++ new/yast2-2.17.6/library/modules/Version.ycp 2008-07-08 16:11:15.000000000 +0200
@@ -20,7 +20,7 @@
/**
* Version of the yast2 package
*/
-global string yast2 = "2.17.5";
+global string yast2 = "2.17.6";
/* EOF */
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/library/network/src/CWMFirewallInterfaces.ycp new/yast2-2.17.6/library/network/src/CWMFirewallInterfaces.ycp
--- old/yast2-2.17.5/library/network/src/CWMFirewallInterfaces.ycp 2008-07-01 15:35:16.000000000 +0200
+++ new/yast2-2.17.6/library/network/src/CWMFirewallInterfaces.ycp 2008-07-08 11:34:31.000000000 +0200
@@ -4,7 +4,7 @@
* Summary: Routines for selecting interfaces opened in firewall
* Authors: Jiri Srain
*
- * $Id: CWMFirewallInterfaces.ycp 48325 2008-06-16 10:46:42Z locilka $
+ * $Id: CWMFirewallInterfaces.ycp 48909 2008-07-08 09:34:31Z locilka $
*
* WARNING: If you want to use this functionality of this module
* you should allways call 'SuSEFirewall::Read()' in the
@@ -96,7 +96,11 @@
*/
void SetFirewallLabel (symbol status) {
string label = "";
- if (status == `off)
+ if (status == `not_installed) {
+ // label
+ label = _("Firewall package is not installed");
+ }
+ else if (status == `off)
{
// label
label = _("Firewall is disabled");
@@ -203,7 +207,9 @@
InitAllInterfacesList ();
symbol status = `custom;
- if (! SuSEFirewall::GetEnableService())
+ if (! SuSEFirewall::SuSEFirewallIsInstalled())
+ status = `not_installed;
+ else if (! SuSEFirewall::GetEnableService())
status = `off;
else if (size (all_interfaces) == 0)
status = `no_ifaces;
@@ -307,7 +313,7 @@
});
});
service_status = filter (string iface, boolean en, service_status, {
- return en;
+ return (en == true);
});
y2milestone("Status: %1", service_status);
allowed_interfaces = maplist (string iface, boolean en, service_status, {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/library/network/src/SuSEFirewall.ycp new/yast2-2.17.6/library/network/src/SuSEFirewall.ycp
--- old/yast2-2.17.5/library/network/src/SuSEFirewall.ycp 2008-07-01 17:46:43.000000000 +0200
+++ new/yast2-2.17.6/library/network/src/SuSEFirewall.ycp 2008-07-08 11:22:36.000000000 +0200
@@ -26,7 +26,7 @@
import "PortRanges";
import "PackageSystem";
- # <!-- SuSEFirewall VARIABLES //-->
+ // <!-- SuSEFirewall VARIABLES //-->
string susefirewall_package = "SuSEfirewall2";
@@ -153,9 +153,9 @@
// FATE #300970: Firewall support for SMB browsing
string broadcast_related_module = "nf_conntrack_netbios_ns";
- # <!-- SuSEFirewall VARIABLES //-->
+ // <!-- SuSEFirewall VARIABLES //-->
- # <!-- SuSEFirewall GLOBAL FUNCTIONS USED BY LOCAL ONES //-->
+ // <!-- SuSEFirewall GLOBAL FUNCTIONS USED BY LOCAL ONES //-->
/**
* Function sets internal variable, which indicates, that any
@@ -215,9 +215,9 @@
}
}
- # <!-- SuSEFirewall GLOBAL FUNCTIONS USED BY LOCAL ONES //-->
+ // <!-- SuSEFirewall GLOBAL FUNCTIONS USED BY LOCAL ONES //-->
- # <!-- SuSEFirewall LOCAL FUNCTIONS //-->
+ // <!-- SuSEFirewall LOCAL FUNCTIONS //-->
/**
* Function returns whether the feature 'any' network interface is supported in the
@@ -931,9 +931,35 @@
}
}
- # <!-- SuSEFirewall LOCAL FUNCTIONS //-->
+ // <!-- SuSEFirewall LOCAL FUNCTIONS //-->
- # <!-- SuSEFirewall GLOBAL FUNCTIONS //-->
+ // <!-- SuSEFirewall GLOBAL FUNCTIONS //-->
+
+ // bnc #388773
+ // By default needed packages are just checked, not installed
+ boolean check_and_install_package = false;
+
+ /**
+ * By default SuSEfirewall2 packages are just checked whether they are installed.
+ * With this function, you can change the behavior to also offer installing
+ * the packages.
+ *
+ * @param boolean new_status, 'true' if packages should be offered for installation
+ */
+ global void SetInstallPackagesIfMissing (boolean new_status) {
+ if (new_status == nil) {
+ y2error ("Wrong value: %1", new_status);
+ return;
+ }
+
+ check_and_install_package = new_status;
+
+ if (check_and_install_package) {
+ y2milestone ("SuSEfirewall2 packages will installed if missing");
+ } else {
+ y2milestone ("SuSEfirewall2 packages will not be installed even if missing");
+ }
+ }
/* Are needed packages (SuSEfirewall2) installed? */
boolean needed_packages_installed = nil;
@@ -946,7 +972,8 @@
global boolean SuSEFirewallIsInstalled () {
if (needed_packages_installed == nil) {
// In mode normal, package can be installed on request
- if (Mode::normal()) {
+ // if required by the module
+ if (check_and_install_package && Mode::normal()) {
needed_packages_installed = PackageSystem::CheckAndInstallPackages ([susefirewall_package]);
y2milestone ("CheckAndInstallPackages -> %1", needed_packages_installed);
// In mode install/update network might be down
@@ -3287,7 +3314,7 @@
}
}
- # <!-- SuSEFirewall GLOBAL FUNCTIONS //-->
+ // <!-- SuSEFirewall GLOBAL FUNCTIONS //-->
/* EOF */
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/library/system/src/FileChanges.ycp new/yast2-2.17.6/library/system/src/FileChanges.ycp
--- old/yast2-2.17.5/library/system/src/FileChanges.ycp 2008-07-01 15:35:14.000000000 +0200
+++ new/yast2-2.17.6/library/system/src/FileChanges.ycp 2008-07-07 13:50:27.000000000 +0200
@@ -32,6 +32,8 @@
import "Mode";
import "Popup";
+import "Directory";
+import "Label";
string data_file = "/var/lib/YaST2/file_checksums.ycp";
@@ -159,7 +161,29 @@
msg = _("Files %1 have been changed manually.
YaST might lose some of the changes");
msg = sformat (msg, mergestring (files, ", "));
- return Popup::ContinueCancel (msg);
+ string popup_file = "/filechecks_non_verbose";
+ if ($[] == SCR::Read (.target.stat, Directory::vardir + popup_file))
+ {
+ term content = `VBox(
+ `Label(msg),
+ `Left(`CheckBox(`id(`disable), _("Do not show this message anymore"))),
+ `HBox(`PushButton(`id(`ok), Label::ContinueButton()),
+ `PushButton(`id(`cancel), Label::CancelButton()))
+ );
+ UI::OpenDialog(content);
+ UI::SetFocus(`ok);
+ any ret=UI::UserInput();
+ y2milestone("ret = %1", ret);
+ if (ret==`ok && (boolean)UI::QueryWidget(`disable, `Value)){
+ y2milestone("Disabled checksum popups");
+ SCR::Write ( .target.string, Directory::vardir + popup_file, "");
+ }
+ UI::CloseDialog();
+ if (ret==`ok)return true;
+ else return false;
+ }
+// return Popup::ContinueCancel (msg);
+ else return true;
}
return true;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/library/wizard/src/Wizard.ycp new/yast2-2.17.6/library/wizard/src/Wizard.ycp
--- old/yast2-2.17.5/library/wizard/src/Wizard.ycp 2008-07-01 15:35:16.000000000 +0200
+++ new/yast2-2.17.6/library/wizard/src/Wizard.ycp 2008-07-07 17:05:05.000000000 +0200
@@ -201,7 +201,7 @@
`VSpacing(0.2),
`HBox(
// translators: dialog title to appear before any content is initialized
- `Heading(`id(`title), `opt (`hstretch), _("YaST2\nInitializing ...")),
+ `Heading(`id(`title), `opt (`hstretch), _("Initializing ...")),
`HStretch()
),
`VWeight( 1, // Layout trick: Lower layout priority with weight
@@ -603,6 +603,8 @@
* Substitute for UI::TimeoutUserInput
*
* Analogical to Wizard::UserInput.
+ *
+ * @param integer timeout_millisec
**/
global any TimeoutUserInput( integer timeout_millisec )
{
@@ -990,66 +992,16 @@
/**
- * Replace the wizard 'next' button with a custom widget.
- * THIS FUNCTION IS DEPRECATED!
- *
- * @deprecated
- * @see SetNextButton
- * @param contents a term describing the new contents
- **/
- global void ReplaceNextButton( term contents )
- {
- if ( UI::WidgetExists(`id(`rep_next ) ) )
- UI::ReplaceWidget(`id(`rep_next), contents);
-
- y2warning( "Wizard::ReplaceNextButton() is deprecated!" );
- }
-
-
- /**
- * Replace the wizard 'back' button with a custom widget.
- * THIS FUNCTION IS DEPRECATED!
- *
- * @deprecated
- * @see SetBackButton
- * @param contents a term describing the new contents
- **/
- global void ReplaceBackButton( term contents )
- {
- if ( UI::WidgetExists(`id(`rep_back ) ) )
- UI::ReplaceWidget(`id(`rep_back), contents);
-
- y2warning( "Wizard::ReplaceBackButton() is deprecated!" );
- }
-
-
- /**
- * Replace the wizard 'abort' button with a custom widget.
- * THIS FUNCTION IS DEPRECATED!
- *
- * @see SetAbortButton
- * @deprecated
- * @param contents a term describing the new contents
- **/
- global void ReplaceAbortButton(term contents)
- {
- if ( UI::WidgetExists(`id(`rep_abort ) ) )
- UI::ReplaceWidget(`id(`rep_abort), contents);
-
- y2warning( "Wizard::ReplaceAbortButton() is deprecated!" );
- }
-
-
- /**
- * Set the wizard 'title' icon
- *
- * Set the wizard 'title' icon to the specified icon from the standard icon
+ * Sets the wizard 'title' icon to the specified icon from the standard icon
* directory.
*
* @stable
*
* @param icon_name name (without path) of the new icon
* @see ClearTitleIcon
+ *
+ * @example
+ * SetTitleIcon ("yast-dns-server");
**/
global void SetTitleIcon( string icon_name )
{
@@ -1072,10 +1024,19 @@
/**
- * Set the icon specified in a .desktop file
+ * Sets the icon specified in a .desktop file got as parameter.
+ * Desktop file is placed in a special directory (/usr/share/applications/YaST2).
+ * Parameter file is realative to that directory without ".desktop" suffix.
+ * Warning: There are no desktop files in inst-sys. Use "SetTitleIcon" instead.
*
* @param file Icon name
* @return boolean true on success
+ *
+ * @example
+ * // Opens /usr/share/applications/YaST2/lan.desktop
+ * // Reads "Icon" entry from there
+ * // Sets the icon.
+ * SetDesktopIcon ("lan")
*/
global boolean SetDesktopIcon( string file )
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-2.17.5/VERSION new/yast2-2.17.6/VERSION
--- old/yast2-2.17.5/VERSION 2008-07-01 19:27:57.000000000 +0200
+++ new/yast2-2.17.6/VERSION 2008-07-08 11:34:24.000000000 +0200
@@ -1 +1 @@
-2.17.5
+2.17.6
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org