Hello community,
here is the log from the commit of package yast2-core
checked in at Thu Aug 28 02:25:04 CEST 2008.
--------
--- yast2-core/yast2-core.changes 2008-08-13 16:04:39.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-core/yast2-core.changes 2008-08-27 12:53:04.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Aug 27 12:13:27 CEST 2008 - locilka@suse.cz
+
+- Enabled getenv builtin.
+- 2.17.9
+
+-------------------------------------------------------------------
Old:
----
yast2-core-2.17.8.tar.bz2
New:
----
yast2-core-2.17.9.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-core.spec ++++++
--- /var/tmp/diff_new_pack.B29660/_old 2008-08-28 02:24:37.000000000 +0200
+++ /var/tmp/diff_new_pack.B29660/_new 2008-08-28 02:24:37.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-core (Version 2.17.8)
+# spec file for package yast2-core (Version 2.17.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-core
-Version: 2.17.8
+Version: 2.17.9
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-core-2.17.8.tar.bz2
+Source0: yast2-core-2.17.9.tar.bz2
Prefix: /usr
# obviously
BuildRequires: gcc-c++
@@ -95,7 +95,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-core-2.17.8
+%setup -n yast2-core-2.17.9
%build
%{prefix}/bin/y2tool y2autoconf
@@ -178,6 +178,9 @@
%doc %{_datadir}/doc/yastdoc
/usr/share/YaST2/data/devtools/bin/generateYCPWrappers
%changelog
+* Wed Aug 27 2008 locilka@suse.cz
+- Enabled getenv builtin.
+- 2.17.9
* Wed Aug 13 2008 aschnell@suse.de
- added tohexstring builtin with width parameter
- 2.17.8
++++++ yast2-core-2.17.8.tar.bz2 -> yast2-core-2.17.9.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/agent-modules/testsuite/tests/dir.scr new/yast2-core-2.17.9/agent-modules/testsuite/tests/dir.scr
--- old/yast2-core-2.17.8/agent-modules/testsuite/tests/dir.scr 2008-06-11 15:46:58.000000000 +0200
+++ new/yast2-core-2.17.9/agent-modules/testsuite/tests/dir.scr 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-.
-
-`ag_modules(
- `ModulesConf("tests/dir.in.test")
-)
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/agent-modules/testsuite/tests/missing.scr new/yast2-core-2.17.9/agent-modules/testsuite/tests/missing.scr
--- old/yast2-core-2.17.8/agent-modules/testsuite/tests/missing.scr 2008-06-11 15:46:46.000000000 +0200
+++ new/yast2-core-2.17.9/agent-modules/testsuite/tests/missing.scr 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-.
-
-`ag_modules(
- `ModulesConf("tests/missing.in.test")
-)
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/agent-modules/testsuite/tests/read1.scr new/yast2-core-2.17.9/agent-modules/testsuite/tests/read1.scr
--- old/yast2-core-2.17.8/agent-modules/testsuite/tests/read1.scr 2008-06-11 15:46:55.000000000 +0200
+++ new/yast2-core-2.17.9/agent-modules/testsuite/tests/read1.scr 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-.
-
-`ag_modules(
- `ModulesConf("tests/read1.in.test")
-)
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/agent-modules/testsuite/tests/write1.scr new/yast2-core-2.17.9/agent-modules/testsuite/tests/write1.scr
--- old/yast2-core-2.17.8/agent-modules/testsuite/tests/write1.scr 2008-06-11 15:46:55.000000000 +0200
+++ new/yast2-core-2.17.9/agent-modules/testsuite/tests/write1.scr 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-.
-
-`ag_modules(
- `ModulesConf("tests/write1.in.test")
-)
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/agent-modules/testsuite/tests/write2.scr new/yast2-core-2.17.9/agent-modules/testsuite/tests/write2.scr
--- old/yast2-core-2.17.8/agent-modules/testsuite/tests/write2.scr 2008-06-11 15:46:56.000000000 +0200
+++ new/yast2-core-2.17.9/agent-modules/testsuite/tests/write2.scr 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-.
-
-`ag_modules(
- `ModulesConf("tests/write2.in.test")
-)
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/agent-modules/testsuite/tests/write3.scr new/yast2-core-2.17.9/agent-modules/testsuite/tests/write3.scr
--- old/yast2-core-2.17.8/agent-modules/testsuite/tests/write3.scr 2008-06-11 15:46:57.000000000 +0200
+++ new/yast2-core-2.17.9/agent-modules/testsuite/tests/write3.scr 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-.
-
-`ag_modules(
- `ModulesConf("tests/write3.in.test")
-)
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/agents-perl/doc/ycp-pm-pod.html new/yast2-core-2.17.9/agents-perl/doc/ycp-pm-pod.html
--- old/yast2-core-2.17.8/agents-perl/doc/ycp-pm-pod.html 2008-04-13 22:31:40.000000000 +0200
+++ new/yast2-core-2.17.9/agents-perl/doc/ycp-pm-pod.html 2008-05-15 17:34:26.000000000 +0200
@@ -9,8 +9,10 @@
<body style="background-color: white">
-<p><a name="__index__"></a></p>
+
<!-- INDEX BEGIN -->
+<div name="index">
+<p><a name="__index__"></a></p>
<ul>
@@ -74,9 +76,11 @@
</ul>
</ul>
+
+<hr name="index" />
+</div>
<!-- INDEX END -->
-<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
@@ -100,31 +104,31 @@
<p>A PerlYCPValue cannot represent a term but only a term is allowed
to initialize an agent in a .scr file. Therefore <a href="#parseterm">ParseTerm</a> is provided.</p>
<dl>
-<dt><strong><a name="item_string_2c_integer_2c_boolean">string, integer, boolean</a></strong>
+<dt><strong><a name="string_integer_boolean" class="item">string, integer, boolean</a></strong>
<dd>
<p>Stored as a scalar.</p>
</dd>
</li>
-<dt><strong><a name="item_list">list</a></strong>
+<dt><strong><a name="list" class="item">list</a></strong>
<dd>
<p>Stored as a reference to a list of PerlYCPValues.</p>
</dd>
</li>
-<dt><strong><a name="item_map">map</a></strong>
+<dt><strong><a name="map" class="item">map</a></strong>
<dd>
<p>Stored as a reference to a map of PerlYCPValues.</p>
</dd>
</li>
-<dt><strong><a name="item_path">path</a></strong>
+<dt><strong><a name="path" class="item">path</a></strong>
<dd>
-<p>Stored as a reference to a string (starting with a ``.'' as expected).</p>
+<p>Stored as a reference to a string (starting with a "." as expected).</p>
</dd>
</li>
-<dt><strong><a name="item_nil">nil (void)</a></strong>
+<dt><strong><a name="nil" class="item">nil (void)</a></strong>
<dd>
<p>Stored as an undef.</p>
@@ -141,7 +145,7 @@
<p>ParseComand $line</p>
<p><code>($command, $path, $arg) = ParseCommand ('Write (.moria.gate, "mellon")');</code></p>
<p>Parse a SCR command of the form Command (.some.path, optional_argument)</p>
-<p>Returns a three element list (``Command'', ``.some.path'', $argument)
+<p>Returns a three element list ("Command", ".some.path", $argument)
where the argument is a <a href="#perlycpvalue">PerlYCPValue</a> and will be undef
if it was not specified.
Note that the path is converted to a string.</p>
@@ -182,12 +186,12 @@
<p><code>Return (["arbitrarily", "complex", "data"]);</code></p>
<p>Sends a <a href="#perlycpvalue">PerlYCPValue</a> to the partner YCP component.</p>
<p>If there's just one argment, scalars are interpreted this way:
-``true'' or ``false'' are sent as
+"true" or "false" are sent as
booleans, integers or strings of digits are sent as integers, otherwise as
strings.
If a second argument exists and is true, all scalars are written as strings.
If a second argument exists and is false, all scalars are written as byteblocks.</p>
-<p>To send a list, call Return(\@list), not Return(@list).
+<p>To send a list, call <code>Return(\@list)</code>, not <code>Return(@list)</code>.
Similarly for a map. You can use references to anonymous lists [] and hashes {}.</p>
<p>The difference from <a href="#ycpreturn">ycpReturn</a> is that Return can return scalars directly,
strings are properly escaped if needeed and paths can be returned.</p>
@@ -200,9 +204,9 @@
and logging just works. In such case, you should not need to use ycp.pm at all.
Instead, <code>use YaST::YCP (":LOGGING")</code>.</p>
<p>The log output can now be redirected, which will be useful for test suites.
-If the first command-line option is ``-l'', the second argument is taken as
-the log file. A hyphen ``-'' designates standard output.</p>
-<p>Otherwise, <em>/var/log/YaST2/y2log</em> and <em>$HOME/.y2log</em> are tried, in that order.</p>
+If the first command-line option is "-l", the second argument is taken as
+the log file. A hyphen "-" designates standard output.</p>
+<p>Otherwise, <em class="file">/var/log/YaST2/y2log</em> and <em class="file">$HOME/.y2log</em> are tried, in that order.</p>
<p>
</p>
<h2><a name="y2debug">y2debug</a></h2>
@@ -212,7 +216,7 @@
y2error,
y2security,
y2internal</p>
-<p>Logs debug messages to <em>/var/log/YaST2/y2log</em> or <em>$HOME/.y2log</em></p>
+<p>Logs debug messages to <em class="file">/var/log/YaST2/y2log</em> or <em class="file">$HOME/.y2log</em></p>
<p>Note a <strong>semantic change</strong> in y2debug: now the environment variable
Y2DEBUG is honored so y2debug will not produce output unless this
variable is set. This is for compatibility with the logging system in libycp.</p>
@@ -227,11 +231,11 @@
<p>
</p>
<h2><a name="ycpargismap">ycpArgIsMap</a></h2>
-<p>Obsolete. Use (ref($arg) eq ``HASH'') instead.</p>
+<p>Obsolete. Use (ref($arg) eq "HASH") instead.</p>
<p>
</p>
<h2><a name="ycpargislist">ycpArgIsList</a></h2>
-<p>Obsolete. Use (ref($arg) eq ``ARRAY'') instead.</p>
+<p>Obsolete. Use (ref($arg) eq "ARRAY") instead.</p>
<p>
</p>
<h2><a name="ycpargisinteger">ycpArgIsInteger</a></h2>
@@ -247,7 +251,7 @@
<p>
</p>
<h2><a name="ycpargisnil">ycpArgIsNil</a></h2>
-<p>Obsolete. Use (ref($arg) eq ``SCALAR'' && $$arg eq ``nil'') instead.</p>
+<p>Obsolete. Use (ref($arg) eq "SCALAR" && $$arg eq "nil") instead.</p>
<p>
</p>
<h2><a name="ycpargisnone">ycpArgIsNone</a></h2>
@@ -255,23 +259,23 @@
<p>
</p>
<h2><a name="ycpcommandisdir">ycpCommandIsDir</a></h2>
-<p>Obsolete. Use ($command eq ``Dir'')</p>
+<p>Obsolete. Use ($command eq "Dir")</p>
<p>
</p>
<h2><a name="ycpcommandisread">ycpCommandIsRead</a></h2>
-<p>Obsolete. Use ($command eq ``Read'')</p>
+<p>Obsolete. Use ($command eq "Read")</p>
<p>
</p>
<h2><a name="ycpcommandiswrite">ycpCommandIsWrite</a></h2>
-<p>Obsolete. Use ($command eq ``Write'')</p>
+<p>Obsolete. Use ($command eq "Write")</p>
<p>
</p>
<h2><a name="ycpcommandisexecute">ycpCommandIsExecute</a></h2>
-<p>Obsolete. Use ($command eq ``Execute'')</p>
+<p>Obsolete. Use ($command eq "Execute")</p>
<p>
</p>
<h2><a name="ycpcommandisresult">ycpCommandIsResult</a></h2>
-<p>Obsolete. Use ($command eq ``result''), note the lowercase 'r'.</p>
+<p>Obsolete. Use ($command eq "result"), note the lowercase 'r'.</p>
<p>
</p>
<h2><a name="ycpgetcommand">ycpGetCommand</a></h2>
@@ -309,7 +313,7 @@
<p>
</p>
<h2><a name="ycpreturnskalarasboolean">ycpReturnSkalarAsBoolean</a></h2>
-<p>Obsolete. Use <a href="#return">Return</a>(``true'' or ``false'')</p>
+<p>Obsolete. Use <a href="#return">Return</a>("true" or "false")</p>
<p>
</p>
<h2><a name="ycpreturnskalarasstring">ycpReturnSkalarAsString</a></h2>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/configure new/yast2-core-2.17.9/configure
--- old/yast2-core-2.17.8/configure 2008-08-13 15:37:30.000000000 +0200
+++ new/yast2-core-2.17.9/configure 2008-08-27 12:53:28.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-core 2.17.8.
+# Generated by GNU Autoconf 2.61 for yast2-core 2.17.9.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-core'
PACKAGE_TARNAME='yast2-core'
-PACKAGE_VERSION='2.17.8'
-PACKAGE_STRING='yast2-core 2.17.8'
+PACKAGE_VERSION='2.17.9'
+PACKAGE_STRING='yast2-core 2.17.9'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1472,7 +1472,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-core 2.17.8 to adapt to many kinds of systems.
+\`configure' configures yast2-core 2.17.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1543,7 +1543,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-core 2.17.8:";;
+ short | recursive ) echo "Configuration of yast2-core 2.17.9:";;
esac
cat <<\_ACEOF
@@ -1660,7 +1660,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-core configure 2.17.8
+yast2-core configure 2.17.9
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1674,7 +1674,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-core $as_me 2.17.8, which was
+It was created by yast2-core $as_me 2.17.9, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2495,7 +2495,7 @@
# Define the identity of the package.
PACKAGE='yast2-core'
- VERSION='2.17.8'
+ VERSION='2.17.9'
cat >>confdefs.h <<_ACEOF
@@ -2723,7 +2723,7 @@
-VERSION="2.17.8"
+VERSION="2.17.9"
RPMNAME="yast2-core"
MAINTAINER="Martin Vidner "
@@ -24383,7 +24383,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-core $as_me 2.17.8, which was
+This file was extended by yast2-core $as_me 2.17.9, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -24436,7 +24436,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-core config.status 2.17.8
+yast2-core config.status 2.17.9
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-core-2.17.8/configure.in new/yast2-core-2.17.9/configure.in
--- old/yast2-core-2.17.8/configure.in 2008-08-13 15:37:15.000000000 +0200
+++ new/yast2-core-2.17.9/configure.in 2008-08-27 12:53:20.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.17.6 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-core, 2.17.8, http://bugs.opensuse.org/, yast2-core)
+AC_INIT(yast2-core, 2.17.9, http://bugs.opensuse.org/, yast2-core)
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.8"
+VERSION="2.17.9"
RPMNAME="yast2-core"
MAINTAINER="Martin Vidner "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/libycp/src/YCPBuiltinMisc.cc new/yast2-core-2.17.9/libycp/src/YCPBuiltinMisc.cc
--- old/yast2-core-2.17.8/libycp/src/YCPBuiltinMisc.cc 2008-07-30 11:14:33.000000000 +0200
+++ new/yast2-core-2.17.9/libycp/src/YCPBuiltinMisc.cc 2008-08-27 12:12:30.000000000 +0200
@@ -216,13 +216,11 @@
}
-
-#if 0
static YCPString
Getenv (const YCPString & name)
{
/**
- * @bu iltin getenv
+ * @builtin getenv
* @short Change or add an environment variable
* @description
* The getenv(variable) function returns the value of variable from
@@ -231,7 +229,8 @@
*
* @param string name
* @return string value
- * @usage getenv("name")
+ * @usage getenv ("USER") -> "root"
+ * @usage getenv ("LC_CTYPE") -> "en_US.UTF-8"
*/
char *value = getenv(name->value().c_str());
@@ -241,9 +240,8 @@
} else {
return YCPNull();
}
-
}
-#endif
+
static YCPValue
Eval (const YCPValue & v)
@@ -625,7 +623,7 @@
{ "random", "integer (integer)", (void *)Random },
{ "setenv", "boolean (string,string)", (void *)Setenv1 },
{ "setenv", "boolean (string,string,boolean)", (void *)Setenv2 },
- //{ "getenv", "string (string)", (void *)Getenv }, //function exist in other module
+ { "getenv", "string (string)", (void *)Getenv },
{ "srandom", "integer ()", (void *)Srandom1 },
{ "srandom", "void (integer)", (void *)Srandom2 },
{ "eval", "flex (block <flex>)", (void *)Eval, DECL_NIL|DECL_FLEX },
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.17.8/VERSION new/yast2-core-2.17.9/VERSION
--- old/yast2-core-2.17.8/VERSION 2008-08-13 15:10:43.000000000 +0200
+++ new/yast2-core-2.17.9/VERSION 2008-08-27 12:52:55.000000000 +0200
@@ -1 +1 @@
-2.17.8
+2.17.9
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org