Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2018-06-19 11:51:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-pkg-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-pkg-bindings"

Tue Jun 19 11:51:20 2018 rev:199 rq:614011 version:4.0.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-pkg-bindings/yast2-pkg-bindings.changes    
2018-05-17 19:32:40.192685414 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes   
    2018-06-19 11:51:23.373374676 +0200
@@ -1,0 +2,8 @@
+Mon Jun  4 12:40:33 UTC 2018 - [email protected]
+
+- Fixed Pkg.TargetInitializeOptions() to not reset the source
+  manager if also the options are the same as used previously
+  (bsc#1095702)
+- 4.0.11
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.3u6feA/_old  2018-06-19 11:51:24.357338143 +0200
+++ /var/tmp/diff_new_pack.3u6feA/_new  2018-06-19 11:51:24.361337995 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.0.10
+Version:        4.0.11
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.3u6feA/_old  2018-06-19 11:51:24.385337104 +0200
+++ /var/tmp/diff_new_pack.3u6feA/_new  2018-06-19 11:51:24.389336956 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        4.0.10
+Version:        4.0.11
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-4.0.10.tar.bz2 -> yast2-pkg-bindings-4.0.11.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.0.10/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-4.0.11/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-4.0.10/package/yast2-pkg-bindings-devel-doc.spec     
2018-05-17 08:55:31.000000000 +0200
+++ new/yast2-pkg-bindings-4.0.11/package/yast2-pkg-bindings-devel-doc.spec     
2018-06-04 17:00:57.000000000 +0200
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.0.10
+Version:        4.0.11
 Release:        0
 License:        GPL-2.0
 Group:          Documentation/HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.0.10/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-4.0.11/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-4.0.10/package/yast2-pkg-bindings.changes    
2018-05-17 08:55:31.000000000 +0200
+++ new/yast2-pkg-bindings-4.0.11/package/yast2-pkg-bindings.changes    
2018-06-04 17:00:57.000000000 +0200
@@ -1,4 +1,12 @@
 -------------------------------------------------------------------
+Mon Jun  4 12:40:33 UTC 2018 - [email protected]
+
+- Fixed Pkg.TargetInitializeOptions() to not reset the source
+  manager if also the options are the same as used previously
+  (bsc#1095702)
+- 4.0.11
+
+-------------------------------------------------------------------
 Wed May 16 16:07:27 UTC 2018 - [email protected]
 
 - Ignore notification exception for failed plugin services,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.0.10/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-4.0.11/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-4.0.10/package/yast2-pkg-bindings.spec       
2018-05-17 08:55:31.000000000 +0200
+++ new/yast2-pkg-bindings-4.0.11/package/yast2-pkg-bindings.spec       
2018-06-04 17:00:57.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        4.0.10
+Version:        4.0.11
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.0.10/src/PkgFunctions.cc 
new/yast2-pkg-bindings-4.0.11/src/PkgFunctions.cc
--- old/yast2-pkg-bindings-4.0.10/src/PkgFunctions.cc   2018-05-17 
08:55:31.000000000 +0200
+++ new/yast2-pkg-bindings-4.0.11/src/PkgFunctions.cc   2018-06-04 
17:00:57.000000000 +0200
@@ -435,8 +435,8 @@
     bool new_target = _target_root != root;
 
     // a repository manager is present and the target has been changed
-    // or there are options to set
-    if ((repo_manager && new_target) || options.size() > 0)
+    // or the repo manager options changed
+    if ((repo_manager && new_target) || options.compare(repo_options) != 
YO_EQUAL)
     {
         y2milestone("Updating RepoManager (target changed from %s to %s)", 
_target_root.c_str(), root.c_str());
 
@@ -470,6 +470,9 @@
         // replace the old repository manager
         if (repo_manager) delete repo_manager;
         repo_manager = new_repo_manager;
+
+        // remember the repo options for the next time
+        repo_options = options;
     }
 
     // update package cache path for loaded repositories when changing the 
target
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.0.10/src/PkgFunctions.h 
new/yast2-pkg-bindings-4.0.11/src/PkgFunctions.h
--- old/yast2-pkg-bindings-4.0.10/src/PkgFunctions.h    2018-05-17 
08:55:31.000000000 +0200
+++ new/yast2-pkg-bindings-4.0.11/src/PkgFunctions.h    2018-06-04 
17:00:57.000000000 +0200
@@ -240,6 +240,8 @@
 
       std::vector<zypp::filesystem::TmpDir> tmp_dirs;
 
+      YCPMap repo_options;
+
       /**
        * Logging helper:
        * search for a repository and in case of exception, log error


Reply via email to