Hello community,
here is the log from the commit of package yast2
checked in at Tue Sep 16 17:42:19 CEST 2008.
--------
--- yast2/yast2.changes 2008-09-16 08:47:35.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2/yast2.changes 2008-09-16 17:31:55.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Sep 16 17:22:42 CEST 2008 - lslezak@suse.cz
+
+- added Service::EnabledServices() and .sysconfig.cron agent
+ (access to /etc/sysconfig/cron file) (bnc#425864)
+- 2.17.25
+
+-------------------------------------------------------------------
Old:
----
yast2-2.17.24.tar.bz2
New:
----
yast2-2.17.25.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.t28644/_old 2008-09-16 17:42:12.000000000 +0200
+++ /var/tmp/diff_new_pack.t28644/_new 2008-09-16 17:42:12.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2 (Version 2.17.24)
+# spec file for package yast2 (Version 2.17.25)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2
-Version: 2.17.24
+Version: 2.17.25
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-2.17.24.tar.bz2
+Source0: yast2-2.17.25.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.17.24
+%setup -n yast2-2.17.25
%build
%{prefix}/bin/y2tool y2autoconf
@@ -251,6 +251,10 @@
%doc %{prefix}/share/doc/packages/yast2/types
%doc %{prefix}/share/doc/packages/yast2/wizard
%changelog
+* Tue Sep 16 2008 lslezak@suse.cz
+- added Service::EnabledServices() and .sysconfig.cron agent
+ (access to /etc/sysconfig/cron file) (bnc#425864)
+- 2.17.25
* Tue Sep 16 2008 locilka@suse.cz
- Fixed ncurses menu (bnc #426507).
- 2.17.24
++++++ yast2-2.17.24.tar.bz2 -> yast2-2.17.25.tar.bz2 ++++++
++++ 5520 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-2.17.24/configure.in new/yast2-2.17.25/configure.in
--- old/yast2-2.17.24/configure.in 2008-09-12 16:10:36.000000000 +0200
+++ new/yast2-2.17.25/configure.in 2008-09-16 17:28:08.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2
dnl
-dnl -- This file is generated by y2autoconf 2.17.6 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.17.3 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2, 2.17.23, http://bugs.opensuse.org/, yast2)
+AC_INIT(yast2, 2.17.25, 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.23"
+VERSION="2.17.25"
RPMNAME="yast2"
MAINTAINER="Jiri Srain "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-2.17.24/library/agents/cfg_cron.scr new/yast2-2.17.25/library/agents/cfg_cron.scr
--- old/yast2-2.17.24/library/agents/cfg_cron.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-2.17.25/library/agents/cfg_cron.scr 2008-09-12 17:24:14.000000000 +0200
@@ -0,0 +1,17 @@
+/**
+ * File:
+ * cfg_cron.scr
+ * Summary:
+ * SCR Agent for reading/writing /etc/sysconfig/cron
+ * using the sysconfig-agent
+ *
+ * $Id: cfg_displaymanager.scr 12455 2003-10-22 12:24:49Z visnov $
+ *
+ * Read/Sets the values defined in <tt>/etc/sysconfig/cron</tt>
+ * in an easy manner.
+ */
+.sysconfig.cron
+
+`ag_ini(
+ `SysConfigFile("/etc/sysconfig/cron")
+)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-2.17.24/library/modules/Version.ycp new/yast2-2.17.25/library/modules/Version.ycp
--- old/yast2-2.17.24/library/modules/Version.ycp 2008-09-16 08:48:12.000000000 +0200
+++ new/yast2-2.17.25/library/modules/Version.ycp 2008-09-16 17:28:24.000000000 +0200
@@ -20,7 +20,7 @@
/**
* Version of the yast2 package
*/
-global string yast2 = "2.17.24";
+global string yast2 = "2.17.25";
/* EOF */
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-2.17.24/library/runlevel/src/Service.ycp new/yast2-2.17.25/library/runlevel/src/Service.ycp
--- old/yast2-2.17.24/library/runlevel/src/Service.ycp 2008-08-28 11:06:28.000000000 +0200
+++ new/yast2-2.17.25/library/runlevel/src/Service.ycp 2008-09-16 17:27:31.000000000 +0200
@@ -8,7 +8,7 @@
* Lukas Ocilka
* Flags: Stable
*
- * $Id: Service.ycp 45182 2008-03-04 12:54:51Z locilka $
+ * $Id: Service.ycp 51195 2008-09-16 15:27:32Z lslezak $
*
* Functions for service (init script) handling used by other modules.
*/
@@ -470,5 +470,51 @@
return error_msg;
}
+/**
+ * Get list of enabled services in a runlevel
+ * @param runlevel requested runlevel number (0-6, -1 = Single)
+ * @return list<string> enabled services
+ */
+global list<string> EnabledServices(integer runlevel)
+{
+ if (runlevel < -1 || runlevel > 6)
+ {
+ y2error("ERROR: Invalid runlevel: %1", runlevel);
+ return nil;
+ }
+
+ // convert the integer to a string (-1 = S)
+ string runlevel_str = (runlevel == -1) ? "S" : sformat("%1", runlevel);
+
+ list<string> ret = [];
+
+ string command = sformat("ls -1 /etc/init.d/rc%1.d/", runlevel_str);
+ y2milestone("Executing: %1", command);
+
+ map out = (map)SCR::Execute(.target.bash_output, command);
+ y2debug("Result: %1", out);
+
+ if (out["exit"]:-1 != 0)
+ {
+ y2error("ERROR: %1", out);
+ return nil;
+ }
+
+ foreach(string s, splitstring(out["stdout"]:"", "\n"),
+ {
+ string service = regexpsub(s, "^S[0-9]+([^0-9]*)", "\\1");
+
+ if (service != nil)
+ {
+ ret = add(ret, service);
+ }
+ }
+ );
+
+ y2milestone("Enabled services in runlevel %1: %2", runlevel, ret);
+
+ return ret;
+}
+
/* EOF */
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-2.17.24/VERSION new/yast2-2.17.25/VERSION
--- old/yast2-2.17.24/VERSION 2008-09-16 08:47:45.000000000 +0200
+++ new/yast2-2.17.25/VERSION 2008-09-16 17:26:04.000000000 +0200
@@ -1 +1 @@
-2.17.24
+2.17.25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org