Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Leap:15.2 checked in at 2020-02-27 06:41:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/yast2-pkg-bindings (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.yast2-pkg-bindings.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-pkg-bindings"

Thu Feb 27 06:41:42 2020 rev:58 rq:779432 version:4.2.7

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/yast2-pkg-bindings/yast2-pkg-bindings.changes  
2020-02-04 17:54:08.636739289 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.yast2-pkg-bindings.new.26092/yast2-pkg-bindings.changes
       2020-02-27 06:41:42.537635302 +0100
@@ -1,0 +2,16 @@
+Wed Feb 26 08:50:50 UTC 2020 - Josef Reidinger <jreidin...@suse.com>
+
+- Fix SourceRestore when some service is defined (bsc#1163081)
+- 4.2.7
+
+-------------------------------------------------------------------
+Thu Feb 20 17:02:03 UTC 2020 - Ladislav Slezák <lsle...@suse.cz>
+
+- Removed obsolete zypp::target::rpm::ConvertDBReport callbacks,
+  not used since SLE12 (by mlandres)
+- Fixed Pkg.SourceRestore call to allow reading the stored
+  repositories even after the initial installation repository has
+  been added (bsc#1163081)
+- 4.2.6
+
+-------------------------------------------------------------------

Old:
----
  yast2-pkg-bindings-4.2.5.tar.bz2

New:
----
  yast2-pkg-bindings-4.2.7.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.GVYqmY/_old  2020-02-27 06:41:42.925636111 +0100
+++ /var/tmp/diff_new_pack.GVYqmY/_new  2020-02-27 06:41:42.925636111 +0100
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.2.5
+Version:        4.2.7
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.GVYqmY/_old  2020-02-27 06:41:42.941636144 +0100
+++ /var/tmp/diff_new_pack.GVYqmY/_new  2020-02-27 06:41:42.945636152 +0100
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           yast2-pkg-bindings
-Version:        4.2.5
+Version:        4.2.7
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-4.2.5.tar.bz2 -> yast2-pkg-bindings-4.2.7.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.2.5/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-4.2.7/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-4.2.5/package/yast2-pkg-bindings-devel-doc.spec      
2020-01-15 14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/package/yast2-pkg-bindings-devel-doc.spec      
2020-02-26 10:10:21.000000000 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.2.5
+Version:        4.2.7
 Release:        0
 License:        GPL-2.0-only
 Group:          Documentation/HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.2.5/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-4.2.7/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-4.2.5/package/yast2-pkg-bindings.changes     
2020-01-15 14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/package/yast2-pkg-bindings.changes     
2020-02-26 10:10:21.000000000 +0100
@@ -1,4 +1,20 @@
 -------------------------------------------------------------------
+Wed Feb 26 08:50:50 UTC 2020 - Josef Reidinger <jreidin...@suse.com>
+
+- Fix SourceRestore when some service is defined (bsc#1163081)
+- 4.2.7
+
+-------------------------------------------------------------------
+Thu Feb 20 17:02:03 UTC 2020 - Ladislav Slezák <lsle...@suse.cz>
+
+- Removed obsolete zypp::target::rpm::ConvertDBReport callbacks,
+  not used since SLE12 (by mlandres)
+- Fixed Pkg.SourceRestore call to allow reading the stored
+  repositories even after the initial installation repository has
+  been added (bsc#1163081)
+- 4.2.6
+
+-------------------------------------------------------------------
 Mon Jan 13 12:18:43 UTC 2020 - Petr Pavlu <petr.pa...@suse.com>
 
 - Fix calculation of replaced products in Pkg.Resolvable2YCPMap()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.2.5/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-4.2.7/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-4.2.5/package/yast2-pkg-bindings.spec        
2020-01-15 14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/package/yast2-pkg-bindings.spec        
2020-02-26 10:10:21.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        4.2.5
+Version:        4.2.7
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.2.5/src/Callbacks.YCP.h 
new/yast2-pkg-bindings-4.2.7/src/Callbacks.YCP.h
--- old/yast2-pkg-bindings-4.2.5/src/Callbacks.YCP.h    2020-01-15 
14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/src/Callbacks.YCP.h    2020-02-26 
10:10:21.000000000 +0100
@@ -65,7 +65,7 @@
      **/
     enum CBid {
       CB_StartRebuildDb, CB_ProgressRebuildDb, CB_NotifyRebuildDb, 
CB_StopRebuildDb,
-      CB_StartConvertDb, CB_ProgressConvertDb, CB_NotifyConvertDb, 
CB_StopConvertDb,
+      /* Legacy: Unused since Code12 */ CB_StartConvertDb, 
CB_ProgressConvertDb, CB_NotifyConvertDb, CB_StopConvertDb,
       CB_StartScanDb, CB_ProgressScanDb, CB_ErrorScanDb, CB_DoneScanDb,
       CB_StartProvide, CB_ProgressProvide, CB_DoneProvide,
       CB_StartPackage, CB_ProgressPackage, CB_DonePackage,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.2.5/src/Callbacks.cc 
new/yast2-pkg-bindings-4.2.7/src/Callbacks.cc
--- old/yast2-pkg-bindings-4.2.5/src/Callbacks.cc       2020-01-15 
14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/src/Callbacks.cc       2020-02-26 
10:10:21.000000000 +0100
@@ -95,57 +95,6 @@
 
 
     ///////////////////////////////////////////////////////////////////
-    // ConvertDbCallback
-    ///////////////////////////////////////////////////////////////////
-    struct ConvertDbReceive : public Recipient, public 
zypp::callback::ReceiveReport<zypp::target::rpm::ConvertDBReport>
-    {
-       ConvertDbReceive( RecipientCtl & construct_r ) : Recipient( construct_r 
) {}
-
-       virtual void reportbegin()
-       {
-           y2milestone("Convert DB Init Callback");
-       }
-
-       virtual void reportend()
-       {
-           y2milestone("Convert DB Destroy Callback");
-       }
-
-       virtual void start(zypp::Pathname pname) {
-           CB callback(ycpcb(YCPCallbacks::CB_StartConvertDb));
-           if (callback._set) {
-               callback.addStr(pname.asString());
-               callback.evaluate();
-           }
-       }
-
-       virtual bool progress(int value, zypp::Pathname pth)
-       {
-           CB callback( ycpcb( YCPCallbacks::CB_ProgressConvertDb ) );
-           if (callback._set) {
-               callback.addInt( value );
-               callback.addStr(pth.asString());
-               callback.evaluate();
-           }
-
-           // return default value from the parent class
-           return zypp::target::rpm::ConvertDBReport::progress(value, pth);
-       }
-
-       virtual void finish(zypp::Pathname path, 
zypp::target::rpm::ConvertDBReport::Error error, const std::string &reason)
-       {
-           CB callback( ycpcb( YCPCallbacks::CB_StopConvertDb ) );
-           if (callback._set) {
-               callback.addInt( error );
-               callback.addStr( reason );
-               callback.evaluate();
-           }
-       }
-    };
-
-
-
-    ///////////////////////////////////////////////////////////////////
     // RebuildDbCallback
     ///////////////////////////////////////////////////////////////////
     struct RebuildDbReceive : public Recipient, public 
zypp::callback::ReceiveReport<zypp::target::rpm::RebuildDBReport>
@@ -1845,7 +1794,6 @@
   private:
 
     // RRM DB callbacks
-    ZyppRecipients::ConvertDbReceive  _convertDbReceive;
     ZyppRecipients::RebuildDbReceive  _rebuildDbReceive;
 
     // package callbacks
@@ -1885,7 +1833,6 @@
 
     ZyppReceive( const YCPCallbacks & ycpcb_r, PkgFunctions &pkg)
       : RecipientCtl( ycpcb_r )
-      , _convertDbReceive( *this )
       , _rebuildDbReceive( *this )
       , _installPkgReceive( *this, pkg )
       , _removePkgReceive( *this )
@@ -1905,7 +1852,6 @@
       , _authReceive( *this )
     {
        // connect the receivers
-       _convertDbReceive.connect();
        _rebuildDbReceive.connect();
        _installPkgReceive.connect();
        _removePkgReceive.connect();
@@ -1928,7 +1874,6 @@
     virtual ~ZyppReceive()
     {
        // disconnect the receivers
-       _convertDbReceive.disconnect();
        _rebuildDbReceive.disconnect();
        _installPkgReceive.disconnect();
        _removePkgReceive.disconnect();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.2.5/src/Callbacks_Register.cc 
new/yast2-pkg-bindings-4.2.7/src/Callbacks_Register.cc
--- old/yast2-pkg-bindings-4.2.5/src/Callbacks_Register.cc      2020-01-15 
14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/src/Callbacks_Register.cc      2020-02-26 
10:10:21.000000000 +0100
@@ -226,16 +226,19 @@
   return SET_YCP_CB( CB_DoneScanDb, args );
 }
 
-
+/** Legacy: Unused since Code12 */
 YCPValue PkgFunctions::CallbackStartConvertDb( const YCPValue& args ) {
   return SET_YCP_CB( CB_StartConvertDb, args );
 }
+/** Legacy: Unused since Code12 */
 YCPValue PkgFunctions::CallbackProgressConvertDb( const YCPValue& args ) {
   return SET_YCP_CB( CB_ProgressConvertDb, args );
 }
+/** Legacy: Unused since Code12 */
 YCPValue PkgFunctions::CallbackNotifyConvertDb( const YCPValue& args ) {
   return SET_YCP_CB( CB_NotifyConvertDb, args );
 }
+/** Legacy: Unused since Code12 */
 YCPValue PkgFunctions::CallbackStopConvertDb( const YCPValue& args ) {
   return SET_YCP_CB( CB_StopConvertDb, args );
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.2.5/src/PkgFunctions.cc 
new/yast2-pkg-bindings-4.2.7/src/PkgFunctions.cc
--- old/yast2-pkg-bindings-4.2.5/src/PkgFunctions.cc    2020-01-15 
14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/src/PkgFunctions.cc    2020-02-26 
10:10:21.000000000 +0100
@@ -61,6 +61,7 @@
 PkgFunctions::PkgFunctions () :
       _target_root( "/" )
     , _target_loaded(false)
+    , _source_loaded(false)
     , zypp_pointer(NULL)
     , repo_manager(NULL)
     , autorefresh_skipped(false)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.2.5/src/PkgFunctions.h 
new/yast2-pkg-bindings-4.2.7/src/PkgFunctions.h
--- old/yast2-pkg-bindings-4.2.5/src/PkgFunctions.h     2020-01-15 
14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/src/PkgFunctions.h     2020-02-26 
10:10:21.000000000 +0100
@@ -83,6 +83,7 @@
 
        zypp::Pathname _target_root;
        bool _target_loaded;
+       bool _source_loaded;
 
        zypp::ZYpp::Ptr zypp_pointer;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.2.5/src/Source_Load.cc 
new/yast2-pkg-bindings-4.2.7/src/Source_Load.cc
--- old/yast2-pkg-bindings-4.2.5/src/Source_Load.cc     2020-01-15 
14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/src/Source_Load.cc     2020-02-26 
10:10:21.000000000 +0100
@@ -55,9 +55,9 @@
     // return value
     bool success = true;
 
-    if (repos.size() > 0)
+    if (_source_loaded)
     {
-       y2warning("Number of registered repositories: %zd, skipping repository 
load!", repos.size());
+       y2warning("Repositories already loaded, skipping repository load!");
        return YCPBoolean(success);
     }
 
@@ -127,6 +127,7 @@
        {
            repos.push_back(new YRepo(*it));
        }
+        _source_loaded = true;
     }
     catch (const zypp::Exception& excpt)
     {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.2.5/src/Source_Save.cc 
new/yast2-pkg-bindings-4.2.7/src/Source_Save.cc
--- old/yast2-pkg-bindings-4.2.5/src/Source_Save.cc     2020-01-15 
14:41:27.000000000 +0100
+++ new/yast2-pkg-bindings-4.2.7/src/Source_Save.cc     2020-02-26 
10:10:21.000000000 +0100
@@ -293,6 +293,8 @@
     }
 
     y2milestone("All sources and services have been unregistered");
+    // reset the source loaded flag
+    _source_loaded = false;
 
     return YCPBoolean(true);
 }


Reply via email to