Hello community,
here is the log from the commit of package yast2-pkg-bindings
checked in at Thu Apr 6 22:07:38 CEST 2006.
--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-04-06 19:02:10.000000000 +0200
+++ yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-04-06 20:30:10.000000000 +0200
@@ -1,0 +2,12 @@
+Thu Apr 6 20:26:26 CEST 2006 - visnov@suse.cz
+
+- invoke SourceChange callback (#161298)
+- 2.13.51
+
+-------------------------------------------------------------------
+Thu Apr 6 20:26:27 CEST 2006 - jsrain@suse.de
+
+- fixed YCP signature of Pkg::SourceCleanupBroken
+- 2.13.50
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-2.13.49.tar.bz2
New:
----
yast2-pkg-bindings-2.13.51.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.kFc5us/_old 2006-04-06 22:07:26.000000000 +0200
+++ /var/tmp/diff_new_pack.kFc5us/_new 2006-04-06 22:07:26.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.13.49)
+# spec file for package yast2-pkg-bindings (Version 2.13.51)
#
# 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.49
-Release: 2
+Version: 2.13.51
+Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.13.49.tar.bz2
+Source0: yast2-pkg-bindings-2.13.51.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.49
+%setup -n yast2-pkg-bindings-2.13.51
%build
%{prefix}/bin/y2tool y2autoconf
@@ -67,6 +67,12 @@
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings
%changelog -n yast2-pkg-bindings
+* Thu Apr 06 2006 - jsrain@suse.de
+- fixed YCP signature of Pkg::SourceCleanupBroken
+- 2.13.50
+* Thu Apr 06 2006 - visnov@suse.cz
+- invoke SourceChange callback (#161298)
+- 2.13.51
* Thu Apr 06 2006 - kkaempf@suse.de
- more debug for DoProvideNameKind()
* Thu Apr 06 2006 - schubi@suse.de
++++++ yast2-pkg-bindings-2.13.49.tar.bz2 -> yast2-pkg-bindings-2.13.51.tar.bz2 ++++++
++++ 17580 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-pkg-bindings-2.13.49/Makefile.am new/yast2-pkg-bindings-2.13.51/Makefile.am
--- old/yast2-pkg-bindings-2.13.49/Makefile.am 2006-04-04 12:47:20.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.51/Makefile.am 2006-03-13 14:00:24.000000000 +0100
@@ -154,7 +154,7 @@
$(PREFIX)/bin/y2tool create-spec < $$i > $$here/package/$${newname} ; \
done
-package: check-up-to-date check-tagversion check-all-packages check-textdomain package-local
+package: check-up-to-date check-tagversion check-all-packages package-local
TAGVERSION = $(PREFIX)/bin/y2tool tagversion
@@ -199,9 +199,6 @@
false; \
fi
-check-textdomain:
- $(PREFIX)/bin/y2tool check-textdomain $(srcdir)
-
stable: checkin-stable
checkin-stable: package
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-pkg-bindings-2.13.49/VERSION new/yast2-pkg-bindings-2.13.51/VERSION
--- old/yast2-pkg-bindings-2.13.49/VERSION 2006-04-06 18:42:45.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.51/VERSION 2006-04-06 20:28:38.000000000 +0200
@@ -1 +1 @@
-2.13.49
+2.13.51
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-pkg-bindings-2.13.49/configure.in new/yast2-pkg-bindings-2.13.51/configure.in
--- old/yast2-pkg-bindings-2.13.49/configure.in 2006-04-04 12:47:20.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.51/configure.in 2006-03-13 14:00:24.000000000 +0100
@@ -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.45, http://www.suse.de/feedback, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.13.25, 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.45"
+VERSION="2.13.25"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Michael Andres "
@@ -158,7 +158,6 @@
AC_HEADER_STDC
-PKG_CHECK_MODULES([ZYPP], [libzypp])
AX_CHECK_DOCBOOK
AC_CONFIG_FILES(Makefile doc/Makefile
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-pkg-bindings-2.13.49/src/Callbacks.cc new/yast2-pkg-bindings-2.13.51/src/Callbacks.cc
--- old/yast2-pkg-bindings-2.13.49/src/Callbacks.cc 2006-04-06 14:49:30.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.51/src/Callbacks.cc 2006-04-06 20:24:08.000000000 +0200
@@ -33,6 +33,7 @@
#include
#include
#include
+#include
// FIXME: do this nicer, source create use this to avoid user feedback
// on probing of source type
@@ -342,6 +343,9 @@
///////////////////////////////////////////////////////////////////
struct DownloadResolvableReceive : public Recipient, public zypp::callback::ReceiveReportzypp::source::DownloadResolvableReport
{
+ static int last_source_id;
+ static int last_source_media;
+
DownloadResolvableReceive( RecipientCtl & construct_r ) : Recipient( construct_r ) {}
int last_reported;
@@ -357,11 +361,28 @@
{
unsigned size = 0;
last_reported = 0;
-
+
if ( zypp::isKindzypp::Package (resolvable_ptr) )
{
- size = (zypp::asKindzypp::Package(resolvable_ptr))->archivesize();
+ zypp::Package::Ptr pkg =
+ zypp::asKindzypp::Package(resolvable_ptr);
+
+ size = pkg->archivesize();
+
+ int source_id = pkg->source().numericId();
+ int media_nr = pkg->mediaId();
+
+ if( source_id != last_source_id || media_nr != last_source_media )
+ {
+ CB callback( ycpcb( YCPCallbacks::CB_SourceChange ) );
+ if (callback._set) {
+ callback.addInt( source_id );
+ callback.addInt( media_nr );
+ callback.evaluate();
+ }
+ }
}
+
CB callback( ycpcb( YCPCallbacks::CB_StartProvide ) );
if (callback._set) {
bool remote = url.getScheme() != "cd" && url.getScheme() != "dvd"
@@ -423,6 +444,9 @@
};
+ int DownloadResolvableReceive::last_source_id = -1;
+ int DownloadResolvableReceive::last_source_media = -1;
+
/*
///////////////////////////////////////////////////////////////////
// InstTargetCallbacks::ScriptExecCallback
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-pkg-bindings-2.13.49/src/Package.cc new/yast2-pkg-bindings-2.13.51/src/Package.cc
--- old/yast2-pkg-bindings-2.13.49/src/Package.cc 2006-04-06 18:42:44.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.51/src/Package.cc 2006-04-06 20:26:23.000000000 +0200
@@ -2104,6 +2104,10 @@
zypp::ZYpp::CommitResult result;
+ // clean the last reported source
+ DownloadResolvableReceive::last_source_id = -1;
+ DownloadResolvableReceive::last_source_media = -1;
+
try
{
result = zypp_ptr()->commit(medianr);
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-pkg-bindings-2.13.49/src/PkgModuleFunctions.h new/yast2-pkg-bindings-2.13.51/src/PkgModuleFunctions.h
--- old/yast2-pkg-bindings-2.13.49/src/PkgModuleFunctions.h 2006-04-06 18:42:44.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.51/src/PkgModuleFunctions.h 2006-04-06 20:28:01.000000000 +0200
@@ -205,7 +205,7 @@
YCPValue SourceCreate (const YCPString&, const YCPString&);
/* TYPEINFO: list<integer>(boolean)*/
YCPValue SourceStartCache (const YCPBoolean&);
- /* TYPEINFO: boolean(void)*/
+ /* TYPEINFO: boolean()*/
YCPValue SourceCleanupBroken ();
/* TYPEINFO: list<integer>(boolean)*/
YCPValue SourceGetCurrent (const YCPBoolean& enabled);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...