Hello community, here is the log from the commit of package libzypp-bindings for openSUSE:Factory checked in at 2013-10-02 17:56:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libzypp-bindings (Old) and /work/SRC/openSUSE:Factory/.libzypp-bindings.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libzypp-bindings" Changes: -------- --- /work/SRC/openSUSE:Factory/libzypp-bindings/libzypp-bindings.changes 2013-05-13 15:07:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libzypp-bindings.new/libzypp-bindings.changes 2013-10-02 17:56:55.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Sep 30 11:10:31 UTC 2013 - [email protected] + +- Add legacy GetResolvablesToInsDel class (removed from libzypp + in favor of transaction) +- fix const pointer lost its namespace +- 0.5.15 + +------------------------------------------------------------------- Old: ---- libzypp-bindings-0.5.14.tar.bz2 New: ---- libzypp-bindings-0.5.15.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libzypp-bindings.spec ++++++ --- /var/tmp/diff_new_pack.zgN0JN/_old 2013-10-02 17:56:55.000000000 +0200 +++ /var/tmp/diff_new_pack.zgN0JN/_new 2013-10-02 17:56:55.000000000 +0200 @@ -1,8 +1,8 @@ # # spec file for package libzypp-bindings # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. - # +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the @@ -14,20 +14,22 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - # nodebuginfo + Name: libzypp-bindings -Version: 0.5.14 +Version: 0.5.15 Release: 0 -License: GPL-2.0+ Summary: Bindings for libzypp +License: GPL-2.0+ Group: Development/Sources BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: cmake python-devel ruby-devel +BuildRequires: cmake BuildRequires: gcc-c++ >= 4.5 -BuildRequires: swig >= 1.3.40 BuildRequires: libzypp-devel >= 10.2.0 +BuildRequires: python-devel +BuildRequires: ruby-devel +BuildRequires: swig >= 1.3.40 Source: %{name}-%{version}.tar.bz2 %description @@ -63,7 +65,6 @@ %{__rm} -rf %{buildroot} %package -n ruby-zypp -License: GPL-2.0+ Summary: Ruby bindings for libzypp Group: Development/Languages/Ruby @@ -80,9 +81,9 @@ %endif %package -n python-zypp -License: GPL-2.0+ Summary: Python bindings for libzypp Group: Development/Languages/Python + %description -n python-zypp - @@ -92,7 +93,6 @@ %{py_sitedir}/zypp.py %package -n perl-zypp -License: GPL-2.0+ Requires: perl = %{perl_version} Summary: Perl bindings for libzypp Group: Development/Languages/Perl ++++++ libzypp-bindings-0.5.14.tar.bz2 -> libzypp-bindings-0.5.15.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzypp-bindings-0.5.14/VERSION.cmake new/libzypp-bindings-0.5.15/VERSION.cmake --- old/libzypp-bindings-0.5.14/VERSION.cmake 2013-03-19 14:01:39.000000000 +0100 +++ new/libzypp-bindings-0.5.15/VERSION.cmake 2013-09-30 12:56:32.000000000 +0200 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "0") SET(VERSION_MINOR "5") -SET(VERSION_PATCH "14") +SET(VERSION_PATCH "15") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzypp-bindings-0.5.14/libzypp-bindings.spec.cmake new/libzypp-bindings-0.5.15/libzypp-bindings.spec.cmake --- old/libzypp-bindings-0.5.14/libzypp-bindings.spec.cmake 2013-03-19 14:01:39.000000000 +0100 +++ new/libzypp-bindings-0.5.15/libzypp-bindings.spec.cmake 2013-10-02 14:41:19.000000000 +0200 @@ -1,8 +1,8 @@ # # spec file for package libzypp-bindings # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. - # +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the @@ -24,10 +24,12 @@ Summary: Bindings for libzypp Group: Development/Sources BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: cmake python-devel ruby-devel +BuildRequires: cmake BuildRequires: gcc-c++ >= 4.5 -BuildRequires: swig >= 1.3.40 BuildRequires: libzypp-devel >= 10.2.0 +BuildRequires: python-devel +BuildRequires: ruby-devel +BuildRequires: swig >= 1.3.40 Source: %{name}-%{version}.tar.bz2 %description @@ -63,7 +65,6 @@ %{__rm} -rf %{buildroot} %package -n ruby-zypp -License: GPL-2.0+ Summary: Ruby bindings for libzypp Group: Development/Languages/Ruby @@ -80,7 +81,6 @@ %endif %package -n python-zypp -License: GPL-2.0+ Summary: Python bindings for libzypp Group: Development/Languages/Python %description -n python-zypp @@ -92,7 +92,6 @@ %{py_sitedir}/zypp.py %package -n perl-zypp -License: GPL-2.0+ Requires: perl = %{perl_version} Summary: Perl bindings for libzypp Group: Development/Languages/Perl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzypp-bindings-0.5.14/package/libzypp-bindings.changes new/libzypp-bindings-0.5.15/package/libzypp-bindings.changes --- old/libzypp-bindings-0.5.14/package/libzypp-bindings.changes 2013-04-29 17:39:47.000000000 +0200 +++ new/libzypp-bindings-0.5.15/package/libzypp-bindings.changes 2013-10-02 14:41:19.000000000 +0200 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Mon Sep 30 11:10:31 UTC 2013 - [email protected] + +- Add legacy GetResolvablesToInsDel class (removed from libzypp + in favor of transaction) +- fix const pointer lost its namespace +- 0.5.15 + +------------------------------------------------------------------- Mon Apr 29 17:37:14 CEST 2013 - [email protected] - Compile with -std=c++11 @@ -14,7 +22,7 @@ Tue Jun 5 09:27:07 UTC 2012 - [email protected] - disable segfaulting python test -- version 0.5.13 +- version 0.5.13 ------------------------------------------------------------------- Mon Jun 4 16:45:43 CEST 2012 - [email protected] @@ -26,7 +34,7 @@ Tue Feb 28 13:16:22 UTC 2012 - [email protected] - fix iteration over pool in ruby (bnc#746439) -- add ability to use PackageProvider via bindings +- add ability to use PackageProvider via bindings - predefine class for ZyppException in ruby so it can be used after require of zypp - version 0.5.11 @@ -70,7 +78,7 @@ Wed Nov 3 13:42:42 CET 2010 - [email protected] - Wrap DownloadMode enum -- Add zypp::setZyppLogfilei. Pass empty string for off, '-' for +- Add zypp::setZyppLogfilei. Pass empty string for off, '-' for stderr or a filename. - version 0.5.6 @@ -156,7 +164,7 @@ ------------------------------------------------------------------- Tue Sep 16 11:03:12 CEST 2008 - [email protected] -- add ZConfig +- add ZConfig ------------------------------------------------------------------- Fri Sep 5 18:41:31 CEST 2008 - [email protected] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzypp-bindings-0.5.14/swig/ResPool.i new/libzypp-bindings-0.5.15/swig/ResPool.i --- old/libzypp-bindings-0.5.14/swig/ResPool.i 2013-03-19 14:01:39.000000000 +0100 +++ new/libzypp-bindings-0.5.15/swig/ResPool.i 2013-05-10 12:46:29.000000000 +0200 @@ -7,7 +7,7 @@ %include <zypp/ResPool.h> %ignore zypp::pool::operator<<; -%include <zypp/pool/GetResolvablesToInsDel.h> +%include "legacy/GetResolvablesToInsDel.h" namespace zypp { typedef ::std::list<zyppPoolItem> PoolItemList; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzypp-bindings-0.5.14/swig/legacy/GetResolvablesToInsDel.h new/libzypp-bindings-0.5.15/swig/legacy/GetResolvablesToInsDel.h --- old/libzypp-bindings-0.5.14/swig/legacy/GetResolvablesToInsDel.h 1970-01-01 01:00:00.000000000 +0100 +++ new/libzypp-bindings-0.5.15/swig/legacy/GetResolvablesToInsDel.h 2013-05-10 12:46:29.000000000 +0200 @@ -0,0 +1,105 @@ +/*---------------------------------------------------------------------\ +| ____ _ __ __ ___ | +| |__ / \ / / . \ . \ | +| / / \ V /| _/ _/ | +| / /__ | | | | | | | +| /_____||_| |_| |_| | +| | +\---------------------------------------------------------------------*/ +/** \file zypp/pool/GetResolvablesToInsDel.h + * +*/ +#ifndef ZYPP_POOL_GETRESOLVABLESTOINSDEL_H +#define ZYPP_POOL_GETRESOLVABLESTOINSDEL_H + +#include <iosfwd> +#include <list> + +#include <zypp/ResPool.h> +#include <zypp/APIConfig.h> +#include <zypp/sat/Solvable.h> +#include <zypp/sat/Transaction.h> +#include <zypp/pool/PoolStats.h> + +/////////////////////////////////////////////////////////////////// +namespace zypp +{ ///////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////// + namespace pool + { ///////////////////////////////////////////////////////////////// + + /////////////////////////////////////////////////////////////////// + // + // CLASS NAME : GetResolvablesToInsDel + // + /** Collect transacting items and sort according to prereqs and + * media access. + * + * \deprecated Use class \ref sat::Transaction which does a better job + * esp. when packages are to be deleted. + */ + struct ZYPP_DEPRECATED GetResolvablesToInsDel + { + typedef std::list<PoolItem> PoolItemList; + + /** Influences the sequence of sources and media proscessed. + * If true prefer a better source, otherwise a better media. + * \code + * ORDER_BY_SOURCE: [S1:1], [S1:2], ... , [S2:1], [S2:2], ... + * ORDER_BY_MEDIANR: [S1:1], [S2:1], ... , [S1:2], [S2:2], ... + * \endcode + * \deprecated Legacy, no longer supported. + */ + enum Order { ORDER_BY_SOURCE, ORDER_BY_MEDIANR }; + + /** */ + GetResolvablesToInsDel( ResPool pool_r, Order order_r = ORDER_BY_SOURCE ) + { + sat::Transaction trans( sat::Transaction::loadFromPool ); + trans.order(); + for_( it, trans.actionBegin(~sat::Transaction::STEP_DONE), trans.actionEnd() ) + { + switch ( it->stepType() ) + { + case sat::Transaction::TRANSACTION_INSTALL: + case sat::Transaction::TRANSACTION_MULTIINSTALL: + if ( it->satSolvable().isKind<SrcPackage>() ) + _toSrcinstall.push_back( PoolItem(*it) ); + else + _toInstall.push_back( PoolItem(*it) ); + break; + case sat::Transaction::TRANSACTION_ERASE: + _toDelete.push_back( PoolItem(*it) ); + break; + case sat::Transaction::TRANSACTION_IGNORE: + // NOP + break; + } + } + } + + PoolItemList _toDelete; + PoolItemList _toInstall; + PoolItemList _toSrcinstall; + }; + /////////////////////////////////////////////////////////////////// + + /** \relates GetResolvablesToInsDel Stream output */ + inline std::ostream & operator<<( std::ostream & str, const GetResolvablesToInsDel & obj ) + { + using std::endl; + dumpPoolStats( str << "toInstall: " << endl, + obj._toInstall.begin(), obj._toInstall.end() ) << endl; + dumpPoolStats( str << "toDelete: " << endl, + obj._toDelete.begin(), obj._toDelete.end() ) << endl; + return str; + } + + ///////////////////////////////////////////////////////////////// + } // namespace pool + /////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////// +} // namespace zypp +/////////////////////////////////////////////////////////////////// +#endif // ZYPP_POOL_GETRESOLVABLESTOINSDEL_H + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzypp-bindings-0.5.14/swig/zypp.i new/libzypp-bindings-0.5.15/swig/zypp.i --- old/libzypp-bindings-0.5.14/swig/zypp.i 2013-04-30 13:46:28.000000000 +0200 +++ new/libzypp-bindings-0.5.15/swig/zypp.i 2013-05-10 12:46:29.000000000 +0200 @@ -136,7 +136,7 @@ #include "zypp/repo/PackageProvider.h" #include "zypp/TmpPath.h" #include "zypp/Resolver.h" -#include "zypp/pool/GetResolvablesToInsDel.h" +#include "legacy/GetResolvablesToInsDel.h" #include "zypp/Product.h" -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
