Hello community,
here is the log from the commit of package yast2-core
checked in at Thu Sep 25 13:22:23 CEST 2008.
--------
--- yast2-core/yast2-core.changes 2008-09-18 10:18:49.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-core/yast2-core.changes 2008-09-25 12:27:33.026024000 +0200
@@ -1,0 +2,7 @@
+Thu Sep 25 12:21:34 CEST 2008 - visnov@suse.cz
+
+- support SCR::RegisterAgent and SCR::UnregisterAgent in chroot
+ (bnc #425472)
+- 2.17.13
+
+-------------------------------------------------------------------
Old:
----
yast2-core-2.17.12.tar.bz2
New:
----
yast2-core-2.17.13.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-core.spec ++++++
--- /var/tmp/diff_new_pack.ip4947/_old 2008-09-25 13:22:09.000000000 +0200
+++ /var/tmp/diff_new_pack.ip4947/_new 2008-09-25 13:22:09.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-core (Version 2.17.12)
+# spec file for package yast2-core (Version 2.17.13)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-core
-Version: 2.17.12
+Version: 2.17.13
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-core-2.17.12.tar.bz2
+Source0: yast2-core-2.17.13.tar.bz2
Prefix: /usr
# obviously
BuildRequires: gcc-c++
@@ -95,7 +95,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-core-2.17.12
+%setup -n yast2-core-2.17.13
%build
%{prefix}/bin/y2tool y2autoconf
@@ -178,6 +178,10 @@
%doc %{_datadir}/doc/yastdoc
/usr/share/YaST2/data/devtools/bin/generateYCPWrappers
%changelog
+* Thu Sep 25 2008 visnov@suse.cz
+- support SCR::RegisterAgent and SCR::UnregisterAgent in chroot
+ (bnc #425472)
+- 2.17.13
* Wed Sep 17 2008 visnov@suse.cz
- Warn to log if using non-standard place for loading modules
- 2.17.12
++++++ yast2-core-2.17.12.tar.bz2 -> yast2-core-2.17.13.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/agent-modules/testsuite/tests/dir.scr new/yast2-core-2.17.13/agent-modules/testsuite/tests/dir.scr
--- old/yast2-core-2.17.12/agent-modules/testsuite/tests/dir.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.17.13/agent-modules/testsuite/tests/dir.scr 2008-09-25 12:01:14.000000000 +0200
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/dir.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/agent-modules/testsuite/tests/missing.scr new/yast2-core-2.17.13/agent-modules/testsuite/tests/missing.scr
--- old/yast2-core-2.17.12/agent-modules/testsuite/tests/missing.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.17.13/agent-modules/testsuite/tests/missing.scr 2008-09-25 12:01:56.000000000 +0200
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/missing.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/agent-modules/testsuite/tests/read1.scr new/yast2-core-2.17.13/agent-modules/testsuite/tests/read1.scr
--- old/yast2-core-2.17.12/agent-modules/testsuite/tests/read1.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.17.13/agent-modules/testsuite/tests/read1.scr 2008-09-25 12:01:56.000000000 +0200
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/read1.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/agent-modules/testsuite/tests/write1.scr new/yast2-core-2.17.13/agent-modules/testsuite/tests/write1.scr
--- old/yast2-core-2.17.12/agent-modules/testsuite/tests/write1.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.17.13/agent-modules/testsuite/tests/write1.scr 2008-09-25 12:01:14.000000000 +0200
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/write1.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/agent-modules/testsuite/tests/write2.scr new/yast2-core-2.17.13/agent-modules/testsuite/tests/write2.scr
--- old/yast2-core-2.17.12/agent-modules/testsuite/tests/write2.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.17.13/agent-modules/testsuite/tests/write2.scr 2008-09-25 12:01:54.000000000 +0200
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/write2.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/agent-modules/testsuite/tests/write3.scr new/yast2-core-2.17.13/agent-modules/testsuite/tests/write3.scr
--- old/yast2-core-2.17.12/agent-modules/testsuite/tests/write3.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.17.13/agent-modules/testsuite/tests/write3.scr 2008-09-25 12:01:54.000000000 +0200
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/write3.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/scr/src/ScriptingAgent.cc new/yast2-core-2.17.13/scr/src/ScriptingAgent.cc
--- old/yast2-core-2.17.12/scr/src/ScriptingAgent.cc 2008-05-05 20:43:39.000000000 +0200
+++ new/yast2-core-2.17.13/scr/src/ScriptingAgent.cc 2008-09-25 12:23:17.000000000 +0200
@@ -8,7 +8,7 @@
* Stanislav Visnovsky
* Maintainer: Arvin Schnell
*
- * $Id: ScriptingAgent.cc 45858 2008-03-28 16:50:23Z mvidner $
+ * $Id: ScriptingAgent.cc 51500 2008-09-25 10:23:17Z visnov $
*/
@@ -284,6 +284,18 @@
{
return UnmountAllAgents ();
}
+ else if (sym == "RegisterAgent"
+ && term->size () == 2
+ && term->value (0)->isPath ())
+ {
+ return RegisterAgent (term->value (0)->asPath (), term->value (1));
+ }
+ else if (sym == "UnregisterAgent"
+ && term->size () == 1
+ && term->value (0)->isPath ())
+ {
+ return UnregisterAgent (term->value (0)->asPath ());
+ }
else if (sym == "YaST2Version" || sym == "SuSEVersion")
{
// SuSEVersion is the older name (for historic reasons)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/scr/src/StdioSCRAgent.cc new/yast2-core-2.17.13/scr/src/StdioSCRAgent.cc
--- old/yast2-core-2.17.12/scr/src/StdioSCRAgent.cc 2007-06-25 11:19:27.000000000 +0200
+++ new/yast2-core-2.17.13/scr/src/StdioSCRAgent.cc 2008-09-25 12:23:17.000000000 +0200
@@ -8,7 +8,7 @@
* Authors: Stanislav Visnovsky
* Maintainer: Arvin Schnell
*
- * $Id: StdioSCRAgent.cc 16782 2004-03-23 13:49:56Z mvidner $
+ * $Id: StdioSCRAgent.cc 51500 2008-09-25 10:23:17Z visnov $
*/
@@ -159,6 +159,63 @@
}
+YCPBoolean
+StdioSCRAgent::RegisterAgent (const YCPPath& path, const YCPValue& value) {
+ if (! m_handler)
+ return YCPNull ();
+
+ y2debug( "This is StdioSCRAgent(%p)::RegisterAgent", this );
+
+ YCPTerm r ( "RegisterAgent" );
+ r.add (path);
+ r.add (value);
+
+ YCPValue v = m_handler->evaluate (r);
+
+ if (v.isNull())
+ {
+ ycp2error ("SCR::RegisterAgent() failed");
+ return YCPNull ();
+ }
+ if (!v->isBoolean ())
+ {
+ ycp2error ("SCR::RegisterAgent() did not return a boolean (%s)", v->toString().c_str());
+ return YCPNull ();
+ }
+
+ return v->asBoolean();
+}
+
+
+
+YCPBoolean
+StdioSCRAgent::UnregisterAgent (const YCPPath& path) {
+ if (! m_handler)
+ return YCPNull ();
+
+ y2debug( "This is StdioSCRAgent(%p)::UnregisterAgent", this );
+
+ YCPTerm r ( "UnregisterAgent" );
+ r.add (path);
+
+ YCPValue v = m_handler->evaluate (r);
+
+ if (v.isNull())
+ {
+ ycp2error ("SCR::UnregisterAgent() failed");
+ return YCPNull ();
+ }
+ if (!v->isBoolean ())
+ {
+ ycp2error ("SCR::UnregisterAgent() did not return a boolean (%s)", v->toString().c_str());
+ return YCPNull ();
+ }
+
+ return v->asBoolean();
+}
+
+
+
YCPValue
StdioSCRAgent::otherCommand (const YCPTerm &term)
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/scr/src/StdioSCRAgent.h new/yast2-core-2.17.13/scr/src/StdioSCRAgent.h
--- old/yast2-core-2.17.12/scr/src/StdioSCRAgent.h 2007-06-25 11:19:27.000000000 +0200
+++ new/yast2-core-2.17.13/scr/src/StdioSCRAgent.h 2008-09-25 11:50:19.000000000 +0200
@@ -56,8 +56,17 @@
virtual YCPMap Error (const YCPPath &path);
/**
- * Handle the commands 'UnregisterAgent',
- * 'UnregisterAllAgents', 'MountAgent', 'MountAllAgents',
+ * Register an agent
+ */
+ virtual YCPBoolean RegisterAgent (const YCPPath& path, const YCPValue& value);
+
+ /**
+ * Unregister an agent
+ */
+ virtual YCPBoolean UnregisterAgent (const YCPPath& path);
+
+ /**
+ * Handle the commands 'UnregisterAllAgents', 'MountAgent', 'MountAllAgents',
* 'UnmountAgent' and 'UnmountAllAgents'.
*/
YCPValue otherCommand (const YCPTerm &term);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.12/VERSION new/yast2-core-2.17.13/VERSION
--- old/yast2-core-2.17.12/VERSION 2008-09-17 15:50:18.000000000 +0200
+++ new/yast2-core-2.17.13/VERSION 2008-09-25 12:21:33.000000000 +0200
@@ -1 +1 @@
-2.17.12
+2.17.13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org