Hello community,
here is the log from the commit of package yast2 for openSUSE:Factory
checked in at Thu Jan 29 01:29:43 CET 2009.
--------
--- yast2/yast2.changes 2009-01-26 14:18:59.000000000 +0100
+++ yast2/yast2.changes 2009-01-27 17:37:12.000000000 +0100
@@ -1,0 +2,13 @@
+Tue Jan 27 17:36:15 CET 2009 - locilka@suse.cz
+
+- Added ag_freespace - SCR agent for checking free space in
+ directories (mounted partitions) (bnc #460477).
+- 2.18.4
+
+-------------------------------------------------------------------
+Tue Jan 27 16:35:14 CET 2009 - aschnell@suse.de
+
+- added String::StartsWith() function
+- 2.18.3
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-2.18.2.tar.bz2
New:
----
yast2-2.18.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.aN1584/_old 2009-01-29 01:28:41.000000000 +0100
+++ /var/tmp/diff_new_pack.aN1584/_new 2009-01-29 01:28:41.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2 (Version 2.18.2)
+# spec file for package yast2 (Version 2.18.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2
-Version: 2.18.2
+Version: 2.18.4
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-2.18.2.tar.bz2
+Source0: yast2-2.18.4.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.18.2
+%setup -n yast2-2.18.4
%build
%{prefix}/bin/y2tool y2autoconf
@@ -251,6 +251,13 @@
%doc %{prefix}/share/doc/packages/yast2/types
%doc %{prefix}/share/doc/packages/yast2/wizard
%changelog
+* Tue Jan 27 2009 locilka@suse.cz
+- Added ag_freespace - SCR agent for checking free space in
+ directories (mounted partitions) (bnc #460477).
+- 2.18.4
+* Tue Jan 27 2009 aschnell@suse.de
+- added String::StartsWith() function
+- 2.18.3
* Mon Jan 26 2009 mzugec@suse.cz
- new Wizard::OpenCancelOKDialog() function
- 2.18.2
++++++ yast2-2.18.2.tar.bz2 -> yast2-2.18.4.tar.bz2 ++++++
++++ 5662 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.18.2/configure.in new/yast2-2.18.4/configure.in
--- old/yast2-2.18.2/configure.in 2009-01-26 14:10:50.000000000 +0100
+++ new/yast2-2.18.4/configure.in 2008-12-16 17:36:02.000000000 +0100
@@ -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, 2.18.2, http://bugs.opensuse.org/, yast2)
+AC_INIT(yast2, 2.17.60, 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.18.2"
+VERSION="2.17.60"
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.18.2/library/agents/ag_freespace new/yast2-2.18.4/library/agents/ag_freespace
--- old/yast2-2.18.2/library/agents/ag_freespace 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-2.18.4/library/agents/ag_freespace 2009-01-27 17:34:01.000000000 +0100
@@ -0,0 +1,67 @@
+#!/usr/bin/perl -w
+
+use ycp;
+use File::Temp;
+
+# Returns free space in a directory
+# @example: SCR::Read(.system.freespace, "/tmp") -> 'size in bytes' or '-1'
+
+while ( <STDIN> ) {
+ my ($command, $path, $directory) = ycp::ParseCommand ($_);
+
+ if ($command eq 'Read') {
+ if ($path eq '.' && defined $directory) {
+ if (!$directory) {
+ y2error ('Directory must be defined');
+ ycp::Return -1;
+ next;
+ }
+ if (! -e $directory) {
+ y2error ('Directory '.$directory.' does not exist');
+ ycp::Return -1;
+ next;
+ }
+ if (! -d $directory) {
+ y2error ('Object '.$directory.' is not a directory');
+ ycp::Return -1;
+ next;
+ }
+
+ my $command = '/bin/df';
+ if (!-x $command) {
+ y2error('Cannot execute '.$command.' command');
+ ycp::Return -1;
+ next;
+ }
+
+ # esacping quoting
+ $directory =~ s/\"/\\\"/g;
+ # -P, --portability: Use the POSIX output format
+ $command = `$command -P "$directory"`;
+ # first line of out is the header
+ my @out = split(/\n/, $command);
+ if (defined $out[1]) {
+ @out = split(/ +/, $out[1]);
+ }
+
+ if (defined $out[3]) {
+ ycp::Return $out[3];
+ next;
+ } else {
+ y2error ('Cannot determine the free space in "'.$directory.'" - Unknown error: '.$command);
+ ycp::Return -1;
+ next;
+ }
+ } else {
+ y2error ('Wrong arguments');
+ ycp::Return -1;
+ next;
+ }
+ } elsif ($command eq 'result') {
+ exit 0;
+ } else {
+ y2error ('Wrong path or arguments');
+ ycp::Return -1;
+ next;
+ }
+}
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.18.2/library/agents/Makefile.am new/yast2-2.18.4/library/agents/Makefile.am
--- old/yast2-2.18.2/library/agents/Makefile.am 2008-09-15 13:18:03.000000000 +0200
+++ new/yast2-2.18.4/library/agents/Makefile.am 2009-01-27 17:37:27.000000000 +0100
@@ -1,9 +1,12 @@
# Makefile.am for yast2/library/agents
-# $Id: Makefile.am 50907 2008-09-09 13:47:41Z locilka $
+# $Id: Makefile.am 55092 2009-01-27 16:37:31Z locilka $
agent_SCRIPTS = \
ag_content \
ag_netd \
- ag_anyxml
+ ag_anyxml \
+ ag_freespace
+
scrconf_DATA = $(wildcard *.scr)
+
EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA)
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.18.2/library/agents/system_freespace.scr new/yast2-2.18.4/library/agents/system_freespace.scr
--- old/yast2-2.18.2/library/agents/system_freespace.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-2.18.4/library/agents/system_freespace.scr 2009-01-27 17:34:27.000000000 +0100
@@ -0,0 +1,36 @@
+/**
+ * File:
+ * cfg_freespace.scr
+ *
+ * Summary:
+ * Agent for getting the free space in the directory (in 1K blocks)
+ *
+ * Author:
+ * Lukas Ocilka
+ *
+ * Access:
+ * read
+ *
+ * Example:
+ * Read(.system.freespace, "/tmp")
+ * (3752236)
+ *
+ * Read(.system.freespace, "/abcd1")
+ * (-1) // Directory does not exist or is not a directory
+ *
+ * Read(.system.freespace, "/abcd2")
+ * (-1) // Cannot find '/bin/df' binary
+ *
+ * Description:
+ * Agent calls command '/bin/df $directory' and returns the available space
+ * in 1K blocks. -1 is returned in case of any error, such as 'Directory does
+ * not exist', 'Object is not a directory', '/bin/df does not exist on the
+ * system' or 'Directory not defined'. Every error should appear in the y2log.
+ *
+ * $Id: system_freespace.scr 55091 2009-01-27 16:34:31Z locilka $
+ *
+ */
+.system.freespace
+
+`ag_freespace ()
+
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.18.2/library/control/src/InstFinishConfig.ycp new/yast2-2.18.4/library/control/src/InstFinishConfig.ycp
--- old/yast2-2.18.2/library/control/src/InstFinishConfig.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-2.18.4/library/control/src/InstFinishConfig.ycp 2008-10-27 15:31:54.000000000 +0100
@@ -0,0 +1,18 @@
+/**
+ * File: modules/InstFinishConfig.ycp
+ * Package: Base
+ * Summary: Functionality for adjusting the inst_finish scripts
+ * Authors: Lukas Ocilka
+ *
+ * $Id:$
+ *
+ * This module is strictly installation-only!
+ */
+
+{
+
+ textdomain "base";
+
+
+/* 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.18.2/library/modules/Version.ycp new/yast2-2.18.4/library/modules/Version.ycp
--- old/yast2-2.18.2/library/modules/Version.ycp 2009-01-26 14:11:27.000000000 +0100
+++ new/yast2-2.18.4/library/modules/Version.ycp 2009-01-27 17:37:36.000000000 +0100
@@ -20,7 +20,7 @@
/**
* Version of the yast2 package
*/
-global string yast2 = "2.18.2";
+global string yast2 = "2.18.4";
/* 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.18.2/library/types/src/String.ycp new/yast2-2.18.4/library/types/src/String.ycp
--- old/yast2-2.18.2/library/types/src/String.ycp 2009-01-26 09:25:35.000000000 +0100
+++ new/yast2-2.18.4/library/types/src/String.ycp 2009-01-27 17:35:48.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: String manipulation routines
* Authors: Michal Svec
*
- * $Id: String.ycp 54938 2009-01-23 12:34:35Z lslezak $
+ * $Id: String.ycp 55083 2009-01-27 15:50:50Z aschnell $
*/
{
@@ -1291,5 +1291,13 @@
return ret;
}
+/**
+ * Checks whether string str starts with test.
+ */
+global boolean StartsWith(string str, string test)
+{
+ return search(str, test) == 0;
+}
+
/* 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.18.2/library/types/testsuite/tests/String.out new/yast2-2.18.4/library/types/testsuite/tests/String.out
--- old/yast2-2.18.2/library/types/testsuite/tests/String.out 2009-01-20 15:21:58.000000000 +0100
+++ new/yast2-2.18.4/library/types/testsuite/tests/String.out 2009-01-27 17:35:48.000000000 +0100
@@ -110,6 +110,11 @@
Dump Strings::EscapeTags
Return <font size='2'><b>text & another</b></font>
Return 2 > 1
+Dump String::StartsWith
+Return true
+Return true
+Return true
+Return false
Dump Strings::RemoveShortcut
Return Hello
Return Hello
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.18.2/library/types/testsuite/tests/String.ycp new/yast2-2.18.4/library/types/testsuite/tests/String.ycp
--- old/yast2-2.18.2/library/types/testsuite/tests/String.ycp 2009-01-20 15:21:58.000000000 +0100
+++ new/yast2-2.18.4/library/types/testsuite/tests/String.ycp 2009-01-27 17:35:48.000000000 +0100
@@ -149,6 +149,12 @@
TEST(``(String::EscapeTags("<font size='2'><b>text & another</b></font>")), [], nil);
TEST(``(String::EscapeTags("2 > 1")), [], nil);
+DUMP("String::StartsWith");
+TEST(``(String::StartsWith("hello", "hello")), [], nil);
+TEST(``(String::StartsWith("hello world", "hello")), [], nil);
+TEST(``(String::StartsWith("hello hello", "hello")), [], nil);
+TEST(``(String::StartsWith("hello", "hello world")), [], nil);
+
DUMP("Strings::RemoveShortcut");
TEST(``(String::RemoveShortcut("Hello")), [], nil);
TEST(``(String::RemoveShortcut("He&llo")), [], nil);
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.18.2/VERSION new/yast2-2.18.4/VERSION
--- old/yast2-2.18.2/VERSION 2009-01-26 13:44:56.000000000 +0100
+++ new/yast2-2.18.4/VERSION 2009-01-27 17:36:02.000000000 +0100
@@ -1 +1 @@
-2.18.2
+2.18.4
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org