Hello community,
here is the log from the commit of package yast2-core
checked in at Mon Sep 3 18:47:32 CEST 2007.
--------
--- yast2-core/yast2-core.changes 2007-08-21 16:01:01.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-core/yast2-core.changes 2007-09-03 14:17:36.574056000 +0200
@@ -1,0 +2,6 @@
+Mon Sep 3 13:41:33 CEST 2007 - juhliarik@suse.cz
+
+- Added new function getenv(), #305163
+- 2.15.10
+
+-------------------------------------------------------------------
Old:
----
yast2-core-2.15.9.tar.bz2
New:
----
yast2-core-2.15.10.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-core.spec ++++++
--- /var/tmp/diff_new_pack.gI7406/_old 2007-09-03 18:45:58.000000000 +0200
+++ /var/tmp/diff_new_pack.gI7406/_new 2007-09-03 18:45:58.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-core (Version 2.15.9)
+# spec file for package yast2-core (Version 2.15.10)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-core
-Version: 2.15.9
+Version: 2.15.10
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-core-2.15.9.tar.bz2
+Source0: yast2-core-2.15.10.tar.bz2
prefix: /usr
# obviously
BuildRequires: gcc-c++
@@ -122,7 +122,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-core-2.15.9
+%setup -n yast2-core-2.15.10
%build
%{prefix}/bin/y2tool y2autoconf
@@ -200,6 +200,9 @@
/usr/share/YaST2/data/devtools/bin/generateYCPWrappers
%changelog
+* Mon Sep 03 2007 - juhliarik@suse.cz
+- Added new function getenv(), #305163
+- 2.15.10
* Tue Aug 21 2007 - mvidner@suse.cz
- Fixed changing the value of table cells (#302042).
- 2.15.9
++++++ yast2-core-2.15.9.tar.bz2 -> yast2-core-2.15.10.tar.bz2 ++++++
++++ 14294 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-core-2.15.9/agents-perl/ag_background new/yast2-core-2.15.10/agents-perl/ag_background
--- old/yast2-core-2.15.9/agents-perl/ag_background 2007-08-06 13:44:25.000000000 +0200
+++ new/yast2-core-2.15.10/agents-perl/ag_background 2007-07-13 14:19:05.000000000 +0200
@@ -10,7 +10,7 @@
# Description:
# Background process agent
#
-# $Id: ag_background 39985 2007-08-06 11:44:24Z mvidner $
+# $Id: ag_background 39345 2007-07-12 10:00:18Z locilka $
#
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-core-2.15.9/configure.in new/yast2-core-2.15.10/configure.in
--- old/yast2-core-2.15.9/configure.in 2007-08-21 16:01:17.000000000 +0200
+++ new/yast2-core-2.15.10/configure.in 2007-09-03 14:17:15.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-core
dnl
-dnl -- This file is generated by y2autoconf 2.15.6 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.15.7 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-core, 2.15.9, http://bugs.opensuse.org/, yast2-core)
+AC_INIT(yast2-core, 2.15.10, http://bugs.opensuse.org/, yast2-core)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.15.9"
+VERSION="2.15.10"
RPMNAME="yast2-core"
MAINTAINER="Martin Vidner "
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-core-2.15.9/libycp/src/YCPBuiltinMisc.cc new/yast2-core-2.15.10/libycp/src/YCPBuiltinMisc.cc
--- old/yast2-core-2.15.9/libycp/src/YCPBuiltinMisc.cc 2007-08-06 11:20:47.000000000 +0200
+++ new/yast2-core-2.15.10/libycp/src/YCPBuiltinMisc.cc 2007-09-03 13:34:22.000000000 +0200
@@ -24,6 +24,7 @@
#include
#include
#include
+#include
#include "ycp/YCPBuiltinMisc.h"
#include "ycp/YCPBoolean.h"
@@ -140,6 +141,86 @@
}
+static YCPBoolean
+Setenv2 (const YCPString & name, const YCPString & value, const YCPBoolean & overwrite)
+{
+ /**
+ * @builtin setenv
+ * @short Change or add an environment variable
+ * @description
+ * The setenv() function adds the variable to the
+ * environment with the value. If variable exist
+ * the value is changed.
+ * @param string variable
+ * @param string value
+ * @param boolean overwrite
+ * @return boolean
+ * @id setenv_2
+ * @usage setenv("PATH", "/home/user", true)
+ */
+ //3rd argument (1) means that value will be overwrite if it exist
+ int ret = setenv(name->value().c_str(), value->value().c_str(), (overwrite->value() ? 1:0) );
+ if (ret == 0) {
+ return YCPBoolean(true);
+ } else {
+ ycp2error ("[Setenv1] failed %s",strerror(errno));
+ return YCPBoolean(false);
+ }
+}
+
+
+static YCPBoolean
+Setenv1 (const YCPString & name, const YCPString & value)
+{
+ /**
+ * @builtin setenv
+ * @short Change or add an environment variable
+ * @description
+ * The setenv() function adds the variable to the
+ * environment with the value. If variable exist
+ * the value is changed.
+ * @param string variable
+ * @param string value
+ * @return boolean
+ * @id setenv_1
+ * @usage setenv("PATH", "/home/user")
+ */
+ //3rd argument (1) means that value will be overwrite if it exist
+
+ return Setenv2(name, value, YCPBoolean(true));
+
+}
+
+
+
+/*
+static YCPString
+Getenv (const YCPString & name)
+{
+ **
+ * @builtin setenv
+ * @short Change or add an environment variable
+ * @description
+ * The getenv(variable) function returns the value of variable from
+ * environment. If variable doesn't exist
+ * the value is NULL.
+ * @param string name
+ * @return string value
+ * @id getenv_1
+ * @usage getenv("name")
+ *
+
+ char *value = getenv(name->value().c_str());
+ if (value) {
+ string ret (value);
+ return YCPString(ret);
+ } else {
+ return YCPNull();
+ }
+
+}
+*/
+
static YCPValue
Eval (const YCPValue & v)
{
@@ -518,6 +599,9 @@
{ "time", "integer ()", (void *)Time },
{ "sleep", "void (integer)", (void *)Sleep },
{ "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
{ "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 --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-core-2.15.9/libyui/doc/examples/Image-animated.ycp new/yast2-core-2.15.10/libyui/doc/examples/Image-animated.ycp
--- old/yast2-core-2.15.9/libyui/doc/examples/Image-animated.ycp 2006-09-19 13:28:24.000000000 +0200
+++ new/yast2-core-2.15.10/libyui/doc/examples/Image-animated.ycp 2007-09-03 13:40:03.000000000 +0200
@@ -2,15 +2,14 @@
* Example for an animated image
**/
{
- global define void MovieDemo(byteblock movie) ``{
- UI::OpenDialog(
- `VBox(
- `Image(`opt(`animated), movie, "Movie"),
- `PushButton("&OK")));
- UI::UserInput();
- UI::CloseDialog();
- };
-
- byteblock movie = (byteblock) SCR::Read( .target.byte, "/usr/share/splash/keys.mng" );
- MovieDemo( movie );
-}
+ string movie = "/usr/share/doc/packages/libqt4/examples/widgets/movie/movies/fire.mng";
+ UI::OpenDialog(
+ `VBox(
+ `MinSize( 10, 4,
+ `Image(`opt(`animated), movie, "animation" ) ),
+ `PushButton("&OK")
+ )
+ );
+ UI::UserInput();
+ UI::CloseDialog();
+};
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-core-2.15.9/libyui/doc/examples/MultiSelectionBox-replace-items1.ycp new/yast2-core-2.15.10/libyui/doc/examples/MultiSelectionBox-replace-items1.ycp
--- old/yast2-core-2.15.9/libyui/doc/examples/MultiSelectionBox-replace-items1.ycp 2006-09-19 13:28:22.000000000 +0200
+++ new/yast2-core-2.15.10/libyui/doc/examples/MultiSelectionBox-replace-items1.ycp 2007-09-03 13:40:03.000000000 +0200
@@ -16,7 +16,7 @@
list veggie_toppings =
[
"Cheese",
- "Mushrooms",
+ "Mushrooms (you might want to consult somebody who knows which ones are toxic)",
"Pepperoni",
"Rucola",
"Tomatoes"
@@ -24,7 +24,7 @@
UI::OpenDialog(`HBox(`VSpacing(15), // layout trick: force minimum height
`VBox(
- `HSpacing(25), // force minimum width
+ `HSpacing(120), // force minimum width
`MultiSelectionBox(`id(`toppings), "Toppings:", all_toppings ),
`Left( `CheckBox(`id(`veggie), `opt(`notify), "&Vegetarian" ) ),
`PushButton(`id(`ok), "&OK" )
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-core-2.15.9/libyui/doc/examples/PackageSelector-10.2.ycp new/yast2-core-2.15.10/libyui/doc/examples/PackageSelector-10.2.ycp
--- old/yast2-core-2.15.9/libyui/doc/examples/PackageSelector-10.2.ycp 2007-04-16 17:56:28.000000000 +0200
+++ new/yast2-core-2.15.10/libyui/doc/examples/PackageSelector-10.2.ycp 2007-09-03 13:40:03.000000000 +0200
@@ -2,7 +2,7 @@
{
boolean use_installed_system = false;
- Pkg::SourceCreate( "file:/mounts/dist/full/full-10.2-i386/", "" );
+ Pkg::SourceCreate( "ftp://dist.suse.de/10.2-i386/", "" );
if ( use_installed_system )
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-core-2.15.9/libyui/src/Y2UINamespace.cc new/yast2-core-2.15.10/libyui/src/Y2UINamespace.cc
--- old/yast2-core-2.15.9/libyui/src/Y2UINamespace.cc 2007-08-21 15:52:27.000000000 +0200
+++ new/yast2-core-2.15.10/libyui/src/Y2UINamespace.cc 2007-09-03 13:40:03.000000000 +0200
@@ -33,6 +33,8 @@
#include "YUIComponent.h"
#include "Y2UINamespace.h"
+#define VERBOSE_UI_CALLS 0
+
YCPValue
Y2UINamespace::SetLanguage( const YCPString & language )
@@ -844,8 +846,10 @@
Y2Function* Y2UINamespace::createFunctionCall (const string name, constFunctionTypePtr type)
{
+#if VERBOSE_UI_CALLS
y2debug ("Creating function call for %s", name.c_str ());
- y2debug ("whose type is %s", type? type->toString().c_str() : "unknown");
+ y2debug ("whose type is %s", type? type->toString().c_str() : "unknown");
+#endif
// overloading: functions with same name must be adjacent in m_symbols
@@ -884,7 +888,9 @@
// found exact match
// BTW, p->position() may change as we go, don't get confused.
// What matters is our own counting.
+#if VERBOSE_UI_CALLS
y2debug ("Found symbol '%s' @%d", p->toString ().c_str (), p->position ());
+#endif
return new Y2UIFunction (this, m_comp, it - b, play_macro_blocks);
}
}
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-core-2.15.9/VERSION new/yast2-core-2.15.10/VERSION
--- old/yast2-core-2.15.9/VERSION 2007-08-21 15:56:03.000000000 +0200
+++ new/yast2-core-2.15.10/VERSION 2007-09-03 13:44:05.000000000 +0200
@@ -1 +1 @@
-2.15.9
+2.15.10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org