Hello community,
here is the log from the commit of package yast2-core
checked in at Tue May 6 01:45:47 CEST 2008.
--------
--- yast2-core/yast2-core.changes 2008-04-14 20:48:48.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-core/yast2-core.changes 2008-05-05 13:09:09.000000000 +0200
@@ -1,0 +2,8 @@
+Mon May 5 13:08:05 CEST 2008 - mvidner@suse.cz
+
+- Allow literal strings as arguments (bnc#382883):
+ Before: y2base foo '("\\t")' '("\"")' UI
+ Now also: y2base foo -S '(\t)' '(")' UI
+- 2.16.49
+
+-------------------------------------------------------------------
Old:
----
yast2-core-2.16.48.tar.bz2
New:
----
yast2-core-2.16.49.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-core.spec ++++++
--- /var/tmp/diff_new_pack.w24843/_old 2008-05-06 01:45:30.000000000 +0200
+++ /var/tmp/diff_new_pack.w24843/_new 2008-05-06 01:45:30.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-core (Version 2.16.48)
+# spec file for package yast2-core (Version 2.16.49)
#
# 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-core
-Version: 2.16.48
+Version: 2.16.49
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-core-2.16.48.tar.bz2
+Source0: yast2-core-2.16.49.tar.bz2
Prefix: /usr
# obviously
BuildRequires: gcc-c++
@@ -84,7 +84,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-core-2.16.48
+%setup -n yast2-core-2.16.49
%build
%{prefix}/bin/y2tool y2autoconf
@@ -161,6 +161,11 @@
%doc %{prefix}/share/doc/packages/yast2-core
/usr/share/YaST2/data/devtools/bin/generateYCPWrappers
%changelog
+* Mon May 05 2008 mvidner@suse.cz
+- Allow literal strings as arguments (bnc#382883):
+ Before: y2base foo '("\\t")' '("\"")' UI
+ Now also: y2base foo -S '(\t)' '(")' UI
+- 2.16.49
* Mon Apr 14 2008 mvidner@suse.cz
- If Y2DEBUGONCRASH is set, the crash handler will also print the
last few debugging log messages, even if Y2DEBUG is not set
++++++ yast2-core-2.16.48.tar.bz2 -> yast2-core-2.16.49.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.16.48/configure new/yast2-core-2.16.49/configure
--- old/yast2-core-2.16.48/configure 2008-04-14 21:39:24.000000000 +0200
+++ new/yast2-core-2.16.49/configure 2008-05-05 13:17:45.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.16.48.
+# Generated by GNU Autoconf 2.61 for yast2-core 2.16.49.
#
# 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.16.48'
-PACKAGE_STRING='yast2-core 2.16.48'
+PACKAGE_VERSION='2.16.49'
+PACKAGE_STRING='yast2-core 2.16.49'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1451,7 +1451,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.16.48 to adapt to many kinds of systems.
+\`configure' configures yast2-core 2.16.49 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1522,7 +1522,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-core 2.16.48:";;
+ short | recursive ) echo "Configuration of yast2-core 2.16.49:";;
esac
cat <<\_ACEOF
@@ -1629,7 +1629,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-core configure 2.16.48
+yast2-core configure 2.16.49
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1643,7 +1643,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.16.48, which was
+It was created by yast2-core $as_me 2.16.49, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2464,7 +2464,7 @@
# Define the identity of the package.
PACKAGE='yast2-core'
- VERSION='2.16.48'
+ VERSION='2.16.49'
cat >>confdefs.h <<_ACEOF
@@ -2692,7 +2692,7 @@
-VERSION="2.16.48"
+VERSION="2.16.49"
RPMNAME="yast2-core"
MAINTAINER="Martin Vidner "
@@ -23003,7 +23003,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.16.48, which was
+This file was extended by yast2-core $as_me 2.16.49, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -23056,7 +23056,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-core config.status 2.16.48
+yast2-core config.status 2.16.49
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.16.48/configure.in new/yast2-core-2.16.49/configure.in
--- old/yast2-core-2.16.48/configure.in 2008-04-14 21:39:12.000000000 +0200
+++ new/yast2-core-2.16.49/configure.in 2008-05-05 13:17:32.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.16.8 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-core, 2.16.48, http://bugs.opensuse.org/, yast2-core)
+AC_INIT(yast2-core, 2.16.49, 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.16.48"
+VERSION="2.16.49"
RPMNAME="yast2-core"
MAINTAINER="Martin Vidner "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.16.48/liby2/src/genericfrontend.cc new/yast2-core-2.16.49/liby2/src/genericfrontend.cc
--- old/yast2-core-2.16.48/liby2/src/genericfrontend.cc 2008-04-14 21:16:25.000000000 +0200
+++ new/yast2-core-2.16.49/liby2/src/genericfrontend.cc 2008-05-05 13:00:12.000000000 +0200
@@ -55,7 +55,7 @@
static void print_usage ();
static void print_help ();
static void print_error (const char*, ...) __attribute__ ((format (printf, 1, 2)));
-static bool is_ycp_value (const char* arg);
+static bool has_parens (const char* arg);
string demangle( const char * mangled );
static
@@ -258,6 +258,8 @@
void
parse_client_and_options (int argc, char ** argv, int& arg, char *& client_name, YCPList& arglist)
{
+ bool args_are_ycp = true;
+
if (!argv[arg]) {
print_usage ();
exit (1);
@@ -279,6 +281,10 @@
// Logfile already done at program start --> ignore here
arg++; // skip filename
}
+ else if (!strcmp(argv[arg], "-S"))
+ {
+ args_are_ycp = false;
+ }
else if (!strcmp(argv[arg], "-s")) // Parse one value (YCPList of options) from stdin
{
Parser parser (0, "<stdin>"); // set parser to stdin
@@ -346,8 +352,10 @@
exit(5);
}
}
- else if (is_ycp_value (argv[arg])) // option is a YCP value -> parse it directly
+ else if (has_parens (argv[arg])) // client args
{
+ if (args_are_ycp) // bnc#382883
+ {
Parser parser (argv[arg]); // set parser to option
YCodePtr pc = parser.parse ();
@@ -359,6 +367,12 @@
}
arglist->add( pc->evaluate (true)); // add to arglist
+ }
+ else
+ {
+ string value(argv[arg] + 1, strlen (argv[arg]) - 2);
+ arglist->add (YCPString (value));
+ }
}
else break; // must be server name
@@ -436,7 +450,7 @@
exit(5);
}
}
- else if (is_ycp_value (argv[arg])) // option is a YCP value -> parse it directly
+ else if (has_parens (argv[arg])) // option is a YCP value -> parse it directly
{
Parser parser (argv[arg]); // set parser to option
@@ -740,7 +754,9 @@
"ClientOptions are:\n"
" -s : Get options as one YCPList from stdin\n"
" -f FileName : Get YCPValue(s) from file\n"
- " '(any YCPValue)' : Parameter _IS_ a YCPValue\n"
+ " -S : Parameters are strings, not YCP to be parsed\n"
+ " '(any YCPValue)...' : Parameter _IS_ a YCPValue\n"
+ " -S '(t1)' '(\\t2)' is equivalent to '(\"t1\")' '(\"\\\\t2\")'\n"
"Generic ServerOptions are:\n"
" -p FileName : Evaluate YCPValue(s) from file (preload)\n"
" '(any YCPValue)' : Parameter _IS_ a YCPValue to be evaluated\n"
@@ -773,7 +789,7 @@
static bool
-is_ycp_value (const char* arg)
+has_parens (const char* arg)
{
return arg[0] == '(' && arg[strlen (arg) - 1] == ')';
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.16.48/libycp/src/YCPBuiltinList.cc new/yast2-core-2.16.49/libycp/src/YCPBuiltinList.cc
--- old/yast2-core-2.16.48/libycp/src/YCPBuiltinList.cc 2008-04-10 16:52:10.000000000 +0200
+++ new/yast2-core-2.16.49/libycp/src/YCPBuiltinList.cc 2008-04-15 13:28:35.000000000 +0200
@@ -225,6 +225,7 @@
* all elements of the first list and all of the second list. Identical
* elements are merged. The order of the elements in the new list is
* preserved. Elements of <tt>l1</tt> are prior to elements from <tt>l2</tt>.
+ * <tt>nil</tt> as either argument makes the result <tt>nil</tt> too.
*
* WARNING: quadratic complexity so far
*
@@ -286,6 +287,7 @@
* all elements of the first list and all of the second list. Identical
* elements are preserved. The order of the elements in the new list is
* preserved. Elements of <tt>l1</tt> are prior to elements from <tt>l2</tt>.
+ * <tt>nil</tt> as either argument makes the result <tt>nil</tt> too.
*
* @see union
* @usage merge ([1, 2], [3, 4]) -> [1, 2, 3, 4]
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-core-2.16.48/VERSION new/yast2-core-2.16.49/VERSION
--- old/yast2-core-2.16.48/VERSION 2008-04-14 20:45:40.000000000 +0200
+++ new/yast2-core-2.16.49/VERSION 2008-05-05 13:07:06.000000000 +0200
@@ -1 +1 @@
-2.16.48
+2.16.49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org