Hello community,
here is the log from the commit of package yast2-pkg-bindings
checked in at Wed Apr 5 21:41:39 CEST 2006.
--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-04-05 16:28:15.000000000 +0200
+++ yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-04-05 18:53:42.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Apr 5 18:41:03 CEST 2006 - jsrain@suse.de
+
+- implemented SourceChangeUrl (#163748)
+- 2.13.48
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-2.13.47.tar.bz2
New:
----
yast2-pkg-bindings-2.13.48.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.e0ptO6/_old 2006-04-05 21:40:56.000000000 +0200
+++ /var/tmp/diff_new_pack.e0ptO6/_new 2006-04-05 21:40:56.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.13.47)
+# spec file for package yast2-pkg-bindings (Version 2.13.48)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-pkg-bindings
-Version: 2.13.47
+Version: 2.13.48
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.13.47.tar.bz2
+Source0: yast2-pkg-bindings-2.13.48.tar.bz2
prefix: /usr
BuildRequires: blocxx-devel boost boost-devel dbus-1-devel docbook-xsl-stylesheets doxygen gcc-c++ hal-devel libgcrypt-devel libxcrypt-devel libxslt libzypp libzypp-devel perl-XML-Writer rpm-devel sgml-skel yast2-core-devel yast2-devtools
Summary: YaST2 Package Manager Access
@@ -36,7 +36,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-pkg-bindings-2.13.47
+%setup -n yast2-pkg-bindings-2.13.48
%build
%{prefix}/bin/y2tool y2autoconf
@@ -67,6 +67,9 @@
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings
%changelog -n yast2-pkg-bindings
+* Wed Apr 05 2006 - jsrain@suse.de
+- implemented SourceChangeUrl (#163748)
+- 2.13.48
* Wed Apr 05 2006 - lslezak@suse.cz
- updated keyring callbacks
- 2.13.47
++++++ yast2-pkg-bindings-2.13.47.tar.bz2 -> yast2-pkg-bindings-2.13.48.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.13.47/VERSION new/yast2-pkg-bindings-2.13.48/VERSION
--- old/yast2-pkg-bindings-2.13.47/VERSION 2006-04-05 16:28:18.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.48/VERSION 2006-04-05 18:52:00.000000000 +0200
@@ -1 +1 @@
-2.13.47
+2.13.48
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.13.47/configure new/yast2-pkg-bindings-2.13.48/configure
--- old/yast2-pkg-bindings-2.13.47/configure 2006-03-27 16:17:02.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.48/configure 2006-04-05 18:52:50.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for yast2-pkg-bindings 2.13.41.
+# Generated by GNU Autoconf 2.59 for yast2-pkg-bindings 2.13.48.
#
# Report bugs to http://www.suse.de/feedback.
#
@@ -423,8 +423,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-pkg-bindings'
PACKAGE_TARNAME='yast2-pkg-bindings'
-PACKAGE_VERSION='2.13.41'
-PACKAGE_STRING='yast2-pkg-bindings 2.13.41'
+PACKAGE_VERSION='2.13.48'
+PACKAGE_STRING='yast2-pkg-bindings 2.13.48'
PACKAGE_BUGREPORT='http://www.suse.de/feedback'
ac_unique_file="RPMNAME"
@@ -959,7 +959,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.13.41 to adapt to many kinds of systems.
+\`configure' configures yast2-pkg-bindings 2.13.48 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1026,7 +1026,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-pkg-bindings 2.13.41:";;
+ short | recursive ) echo "Configuration of yast2-pkg-bindings 2.13.48:";;
esac
cat <<\_ACEOF
@@ -1169,7 +1169,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-yast2-pkg-bindings configure 2.13.41
+yast2-pkg-bindings configure 2.13.48
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1183,7 +1183,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.13.41, which was
+It was created by yast2-pkg-bindings $as_me 2.13.48, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1913,7 +1913,7 @@
# Define the identity of the package.
PACKAGE='yast2-pkg-bindings'
- VERSION='2.13.41'
+ VERSION='2.13.48'
cat >>confdefs.h <<_ACEOF
@@ -2124,7 +2124,7 @@
-VERSION="2.13.41"
+VERSION="2.13.48"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Michael Andres "
@@ -20042,7 +20042,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by yast2-pkg-bindings $as_me 2.13.41, which was
+This file was extended by yast2-pkg-bindings $as_me 2.13.48, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -20105,7 +20105,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-pkg-bindings config.status 2.13.41
+yast2-pkg-bindings config.status 2.13.48
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.13.47/configure.in new/yast2-pkg-bindings-2.13.48/configure.in
--- old/yast2-pkg-bindings-2.13.47/configure.in 2006-03-27 16:16:48.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.48/configure.in 2006-04-05 18:52:39.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-pkg-bindings, 2.13.41, http://www.suse.de/feedback, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.13.48, http://www.suse.de/feedback, yast2-pkg-bindings)
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.13.41"
+VERSION="2.13.48"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Michael Andres "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.13.47/pkg-bindings.pot new/yast2-pkg-bindings-2.13.48/pkg-bindings.pot
--- old/yast2-pkg-bindings-2.13.47/pkg-bindings.pot 2006-03-27 16:52:32.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.48/pkg-bindings.pot 1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR SuSE Linux Products GmbH, Nuernberg
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR , YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-03-27 16:52+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: LANGUAGE \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: src/Package.cc:1669 src/Package.cc:1729
-msgid "See /var/log/YaST2/badlist for more information."
-msgstr ""
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.13.47/src/Source.cc new/yast2-pkg-bindings-2.13.48/src/Source.cc
--- old/yast2-pkg-bindings-2.13.47/src/Source.cc 2006-04-04 15:38:29.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.48/src/Source.cc 2006-04-05 18:40:00.000000000 +0200
@@ -37,6 +37,7 @@
#include
#include
#include
+#include
#include // snprintf
@@ -611,33 +612,31 @@
YCPValue
PkgModuleFunctions::SourceChangeUrl (const YCPInteger& id, const YCPString& u)
{
+ zypp::Source_Ref src;
+ try {
+ src = zypp::SourceManager::sourceManager()->findSource(id->value());
+ }
+ catch (const zypp::Exception & excpt)
+ {
+ _last_error.setLastError(excpt.asUserString());
+ y2error ("Source ID %lld not found: %s", id->asInteger()->value(), excpt.msg().c_str());
+ return YCPBoolean(false);
+ }
-#warning SourceChangeUrl is not implemented
- /* TODO FIXME
- YCPList args;
- args->add (id);
- args->add (u);
-
- //-------------------------------------------------------------------------------------//
- YcpArgLoad decl(__FUNCTION__);
-
- InstSrcManager::ISrcId & source_id( decl.arg() );
- Url & url ( decl.arg() );
-
- if ( ! decl.load( args ) ) {
- return pkgError_bad_args;
- }
- //-------------------------------------------------------------------------------------//
-
- if ( ! source_id )
- return pkgError( InstSrcError::E_bad_id );
-
- PMError err = _y2pm.instSrcManager().rewriteUrl( source_id, url );
-
- if ( err )
- return pkgError( err );
-*/
- return YCPBoolean( true );
+ try {
+ zypp::Pathname pth = src.path();
+ zypp::Url url = zypp::Url(u->value ());
+ zypp::media::MediaManager media_mgr;
+ zypp::media::MediaAccessId media_id = media_mgr.open(url);
+ src.changeMedia(media_id, pth);
+ }
+ catch (const zypp::Exception & excpt)
+ {
+ _last_error.setLastError(excpt.asUserString());
+ y2error ("Cannot change media for source %lld: %s", id->asInteger()->value(), excpt.msg().c_str());
+ return YCPBoolean(false);
+ }
+ return YCPBoolean(true);
}
/****************************************************************************************
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...