Hello community,
here is the log from the commit of package yast2-pkg-bindings
checked in at Mon Sep 8 16:37:08 CEST 2008.
--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2008-09-04 14:10:14.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-pkg-bindings/yast2-pkg-bindings.changes 2008-09-08 15:53:09.377477000 +0200
@@ -1,0 +2,8 @@
+Mon Sep 8 15:35:09 CEST 2008 - lslezak@suse.cz
+
+- added Pkg::ServiceURL() (get a full URL of a service)
+- return "service" property of a repository (if it is a part of a
+ service)
+- 2.17.10
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-2.17.9.tar.bz2
New:
----
yast2-pkg-bindings-2.17.10.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.Go8922/_old 2008-09-08 16:37:00.000000000 +0200
+++ /var/tmp/diff_new_pack.Go8922/_new 2008-09-08 16:37:00.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings-devel-doc (Version 2.17.9)
+# spec file for package yast2-pkg-bindings-devel-doc (Version 2.17.10)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-pkg-bindings-devel-doc
-Version: 2.17.9
+Version: 2.17.10
Release: 1
License: GPL v2 or later
Group: Documentation/HTML
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.17.9.tar.bz2
+Source0: yast2-pkg-bindings-2.17.10.tar.bz2
Prefix: %_prefix
# same as in the main package (because we use the same configure.in.in)
BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen gcc-c++ libgcrypt-devel libxcrypt-devel libxslt libzypp-devel perl-XML-Writer sgml-skel yast2-core-devel yast2-devtools
@@ -45,7 +45,7 @@
Ladislav Slez�k
%prep
-%setup -n yast2-pkg-bindings-2.17.9
+%setup -n yast2-pkg-bindings-2.17.10
# build only documentation, ignore all other directories
echo "doc" > SUBDIRS
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.Go8922/_old 2008-09-08 16:37:00.000000000 +0200
+++ /var/tmp/diff_new_pack.Go8922/_new 2008-09-08 16:37:00.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.17.9)
+# spec file for package yast2-pkg-bindings (Version 2.17.10)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-pkg-bindings
-Version: 2.17.9
+Version: 2.17.10
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.17.9.tar.bz2
+Source0: yast2-pkg-bindings-2.17.10.tar.bz2
Prefix: /usr
BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen gcc-c++ libgcrypt-devel libxcrypt-devel libxslt perl-XML-Writer sgml-skel yast2-core-devel yast2-devtools
BuildRequires: libzypp-devel >= 5.0.0
@@ -47,7 +47,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-pkg-bindings-2.17.9
+%setup -n yast2-pkg-bindings-2.17.10
# build only the library, ignore documentation (it is in devel-doc package)
echo "src" > SUBDIRS
@@ -79,6 +79,11 @@
%{_libdir}/YaST2/plugin/libpy2Pkg.so
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings
%changelog
+* Mon Sep 08 2008 lslezak@suse.cz
+- added Pkg::ServiceURL() (get a full URL of a service)
+- return "service" property of a repository (if it is a part of a
+ service)
+- 2.17.10
* Thu Sep 04 2008 lslezak@suse.cz
- added support for services, new functions: Pkg::ServiceAliases(),
Pkg::ServiceAdd() Pkg::ServiceDelete(), Pkg::ServiceGet(),
++++++ yast2-pkg-bindings-2.17.9.tar.bz2 -> yast2-pkg-bindings-2.17.10.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.9/configure new/yast2-pkg-bindings-2.17.10/configure
--- old/yast2-pkg-bindings-2.17.9/configure 2008-09-04 13:58:36.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.10/configure 2008-09-08 15:43:57.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-pkg-bindings 2.17.9.
+# Generated by GNU Autoconf 2.61 for yast2-pkg-bindings 2.17.10.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-pkg-bindings'
PACKAGE_TARNAME='yast2-pkg-bindings'
-PACKAGE_VERSION='2.17.9'
-PACKAGE_STRING='yast2-pkg-bindings 2.17.9'
+PACKAGE_VERSION='2.17.10'
+PACKAGE_STRING='yast2-pkg-bindings 2.17.10'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1453,7 +1453,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-pkg-bindings 2.17.9 to adapt to many kinds of systems.
+\`configure' configures yast2-pkg-bindings 2.17.10 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1524,7 +1524,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-pkg-bindings 2.17.9:";;
+ short | recursive ) echo "Configuration of yast2-pkg-bindings 2.17.10:";;
esac
cat <<\_ACEOF
@@ -1636,7 +1636,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-pkg-bindings configure 2.17.9
+yast2-pkg-bindings configure 2.17.10
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1650,7 +1650,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-pkg-bindings $as_me 2.17.9, which was
+It was created by yast2-pkg-bindings $as_me 2.17.10, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2471,7 +2471,7 @@
# Define the identity of the package.
PACKAGE='yast2-pkg-bindings'
- VERSION='2.17.9'
+ VERSION='2.17.10'
cat >>confdefs.h <<_ACEOF
@@ -2699,7 +2699,7 @@
-VERSION="2.17.9"
+VERSION="2.17.10"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
@@ -21700,7 +21700,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-pkg-bindings $as_me 2.17.9, which was
+This file was extended by yast2-pkg-bindings $as_me 2.17.10, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21753,7 +21753,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-pkg-bindings config.status 2.17.9
+yast2-pkg-bindings config.status 2.17.10
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-pkg-bindings-2.17.9/configure.in new/yast2-pkg-bindings-2.17.10/configure.in
--- old/yast2-pkg-bindings-2.17.9/configure.in 2008-09-04 13:58:22.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.10/configure.in 2008-09-08 15:43:43.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.17.3 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-pkg-bindings, 2.17.9, http://bugs.opensuse.org/, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.17.10, http://bugs.opensuse.org/, yast2-pkg-bindings)
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.9"
+VERSION="2.17.10"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.9/src/PkgFunctions.h new/yast2-pkg-bindings-2.17.10/src/PkgFunctions.h
--- old/yast2-pkg-bindings-2.17.9/src/PkgFunctions.h 2008-09-01 18:02:11.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.10/src/PkgFunctions.h 2008-09-05 12:08:24.000000000 +0200
@@ -777,6 +777,8 @@
YCPValue ServiceRefresh(const YCPString&);
/* TYPEINFO: void()*/
YCPValue ServicesReset();
+ /* TYPEINFO: string(string)*/
+ YCPValue ServiceURL(const YCPString &alias);
YCPValue ResolvablePropertiesEx(const YCPString& name, const YCPSymbol& kind_r, const YCPString& version, bool dependencies);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.9/src/Service.cc new/yast2-pkg-bindings-2.17.10/src/Service.cc
--- old/yast2-pkg-bindings-2.17.9/src/Service.cc 2008-09-04 12:35:23.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.10/src/Service.cc 2008-09-05 12:15:57.000000000 +0200
@@ -134,6 +134,27 @@
return ret;
}
+/******************************************************************************
+ * @builtin SourceURL
+ *
+ * @short Get full service URL (including password!)
+ * @param alias alias of the service
+ * @return string URL or empty string on failure
+ **/
+YCPValue
+PkgFunctions::ServiceURL(const YCPString &alias)
+{
+ if (alias.isNull())
+ {
+ y2error("Error: nil service name");
+ return YCPString("");
+ }
+
+ zypp::ServiceInfo s(service_manager.GetService(alias->value()));
+
+ return YCPString(s.url().asCompleteString());
+}
+
/**
@builtin ServiceSet
@short Set properties of a service
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.9/src/Source_Get.cc new/yast2-pkg-bindings-2.17.10/src/Source_Get.cc
--- old/yast2-pkg-bindings-2.17.9/src/Source_Get.cc 2008-08-20 10:10:06.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.10/src/Source_Get.cc 2008-09-08 15:43:35.000000000 +0200
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Source_Get.cc 50223 2008-08-20 08:10:05Z lslezak $
+ File: $Id: Source_Get.cc 50804 2008-09-08 13:43:34Z lslezak $
Author: Ladislav Slezák
Summary: Functions for reading repository properties
Namespace: Pkg
@@ -108,6 +108,7 @@
* "url" : YCPString (without password, but see SourceURL),
* "alias" : YCPString,
* "name" : YCPString,
+ * "service" : YCPString, (service to which the repo belongs, empty if there is no service assigned)
* ];
*
* </code>
@@ -151,6 +152,8 @@
data->add( YCPString("priority"), YCPInteger(repo->repoInfo().priority()));
+ data->add( YCPString("service"), YCPString(repo->repoInfo().service()));
+
return data;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.9/VERSION new/yast2-pkg-bindings-2.17.10/VERSION
--- old/yast2-pkg-bindings-2.17.9/VERSION 2008-09-04 13:50:46.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.10/VERSION 2008-09-08 15:34:52.000000000 +0200
@@ -1 +1 @@
-2.17.9
+2.17.10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org