Hello community, here is the log from the commit of package yast2-pkg-bindings checked in at Fri May 26 15:47:33 CEST 2006. -------- --- yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-05-22 15:51:46.000000000 +0200 +++ yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-05-25 17:42:02.000000000 +0200 @@ -1,0 +2,6 @@ +Thu May 25 17:41:32 CEST 2006 - mvidner@suse.cz + +- Added SourceSaveAll which always saves and does not disable (#176013). +- 2.13.80 + +------------------------------------------------------------------- Old: ---- yast2-pkg-bindings-2.13.79.tar.bz2 New: ---- yast2-pkg-bindings-2.13.80.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-pkg-bindings.spec ++++++ --- /var/tmp/diff_new_pack.6RWV9L/_old 2006-05-26 15:35:49.000000000 +0200 +++ /var/tmp/diff_new_pack.6RWV9L/_new 2006-05-26 15:35:49.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package yast2-pkg-bindings (Version 2.13.79) +# spec file for package yast2-pkg-bindings (Version 2.13.80) # # 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.79 +Version: 2.13.80 Release: 1 License: GPL Group: System/YaST BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: yast2-pkg-bindings-2.13.79.tar.bz2 +Source0: yast2-pkg-bindings-2.13.80.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 <visnov@suse.cz> %prep -%setup -n yast2-pkg-bindings-2.13.79 +%setup -n yast2-pkg-bindings-2.13.80 %build %{prefix}/bin/y2tool y2autoconf @@ -67,6 +67,9 @@ %doc %{prefix}/share/doc/packages/yast2-pkg-bindings %changelog -n yast2-pkg-bindings +* Thu May 25 2006 - mvidner@suse.cz +- Added SourceSaveAll which always saves and does not disable (#176013). +- 2.13.80 * Mon May 22 2006 - lslezak@suse.cz - Pkg::DoProvide - select only the newest item for installation, remove the flag from other versions (#176854) ++++++ yast2-pkg-bindings-2.13.79.tar.bz2 -> yast2-pkg-bindings-2.13.80.tar.bz2 ++++++ ++++ 13654 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.79/VERSION new/yast2-pkg-bindings-2.13.80/VERSION --- old/yast2-pkg-bindings-2.13.79/VERSION 2006-05-22 13:23:43.000000000 +0200 +++ new/yast2-pkg-bindings-2.13.80/VERSION 2006-05-25 17:40:51.000000000 +0200 @@ -1 +1 @@ -2.13.79 +2.13.80 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.79/configure.in new/yast2-pkg-bindings-2.13.80/configure.in --- old/yast2-pkg-bindings-2.13.79/configure.in 2006-05-22 15:43:51.000000000 +0200 +++ new/yast2-pkg-bindings-2.13.80/configure.in 2006-05-25 17:46:01.000000000 +0200 @@ -1,9 +1,9 @@ dnl configure.in for yast2-pkg-bindings dnl -dnl -- This file is generated by y2autoconf 2.13.18 - DO NOT EDIT! -- +dnl -- This file is generated by y2autoconf 2.13.17 - DO NOT EDIT! -- dnl (edit configure.in.in instead) -AC_INIT(yast2-pkg-bindings, 2.13.79, http://bugs.opensuse.org/, yast2-pkg-bindings) +AC_INIT(yast2-pkg-bindings, 2.13.80, http://bugs.opensuse.org/, 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.79" +VERSION="2.13.80" RPMNAME="yast2-pkg-bindings" MAINTAINER="Michael Andres <ma@suse.de>" 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.79/src/PkgModule.cc new/yast2-pkg-bindings-2.13.80/src/PkgModule.cc --- old/yast2-pkg-bindings-2.13.79/src/PkgModule.cc 2006-02-14 10:12:13.000000000 +0100 +++ new/yast2-pkg-bindings-2.13.80/src/PkgModule.cc 2006-05-25 17:25:47.000000000 +0200 @@ -25,6 +25,9 @@ #include <zypp/base/LogControl.h> #include <zypp/Pathname.h> +// it is never deleted :-/ +// which may be a good thing, because ~PkgModuleFunctions would call +// the badly designed SourceFinishAll. #176013 PkgModule* PkgModule::current_pkg = NULL; struct YaSTZyppLogger : public zypp::base::LogControl::LineWriter 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.79/src/PkgModuleFunctions.h new/yast2-pkg-bindings-2.13.80/src/PkgModuleFunctions.h --- old/yast2-pkg-bindings-2.13.79/src/PkgModuleFunctions.h 2006-05-22 13:23:26.000000000 +0200 +++ new/yast2-pkg-bindings-2.13.80/src/PkgModuleFunctions.h 2006-05-25 17:18:10.000000000 +0200 @@ -229,6 +229,8 @@ /* TYPEINFO: boolean(integer)*/ YCPValue SourceFinish (const YCPInteger&); /* TYPEINFO: boolean()*/ + YCPValue SourceSaveAll (); + /* TYPEINFO: boolean()*/ YCPValue SourceFinishAll (); /* TYPEINFO: map<string,any>(integer)*/ YCPValue SourceGeneralData (const YCPInteger&); 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.79/src/Source.cc new/yast2-pkg-bindings-2.13.80/src/Source.cc --- old/yast2-pkg-bindings-2.13.79/src/Source.cc 2006-05-19 09:46:48.000000000 +0200 +++ new/yast2-pkg-bindings-2.13.80/src/Source.cc 2006-05-25 17:40:12.000000000 +0200 @@ -289,10 +289,39 @@ return YCPBoolean(true); } +/****************************************************************************** + * @builtin SourceSaveAll + * + * @short Save all InstSrces. + * @return boolean + **/ +YCPValue +PkgModuleFunctions::SourceSaveAll () +{ + try + { + y2milestone( "Storing the source setup in %s", _target_root.asString().c_str()) ; + zypp::SourceManager::sourceManager()->store( _target_root, true ); + } + catch (zypp::Exception & excpt) + { + y2error("Pkg::SourceSaveAll has failed: %s", excpt.msg().c_str() ); + _last_error.setLastError(excpt.asUserString()); + return YCPBoolean(false); + } + + y2milestone( "All sources saved"); + + return YCPBoolean(true); +} + /**************************************************************************************** * @builtin SourceFinishAll * - * @short Disable all InstSrces. + * @short Save and then disable all InstSrces. + * @description + * If there are no enabled sources, do nothing + * (idempotence hack, broken design: #155459, #176013, use SourceSaveAll). * @return boolean **/ YCPValue ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...