Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2017-06-05 18:48:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-pkg-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-pkg-bindings"

Mon Jun  5 18:48:37 2017 rev:189 rq:500555 version:3.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-pkg-bindings/yast2-pkg-bindings.changes    
2017-04-12 17:08:22.129914175 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes   
    2017-06-05 18:48:38.431608565 +0200
@@ -1,0 +2,7 @@
+Fri Jun  2 08:42:12 UTC 2017 - igonzalezs...@suse.com
+
+- Fix pkgGpgCheck callback crashing when reporting SrcPackages
+  (bsc#1037210) (by mlandres)
+- 3.2.3
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.9mlDwu/_old  2017-06-05 18:48:39.015526262 +0200
+++ /var/tmp/diff_new_pack.9mlDwu/_new  2017-06-05 18:48:39.019525698 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.2.2
+Version:        3.2.3
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.9mlDwu/_old  2017-06-05 18:48:39.047521752 +0200
+++ /var/tmp/diff_new_pack.9mlDwu/_new  2017-06-05 18:48:39.051521188 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.2.2
+Version:        3.2.3
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-3.2.2.tar.bz2 -> yast2-pkg-bindings-3.2.3.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.2.2/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-3.2.3/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-3.2.2/package/yast2-pkg-bindings-devel-doc.spec      
2017-03-29 18:42:29.252988637 +0200
+++ new/yast2-pkg-bindings-3.2.3/package/yast2-pkg-bindings-devel-doc.spec      
2017-06-02 10:47:52.094711532 +0200
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.2.2
+Version:        3.2.3
 Release:        0
 License:        GPL-2.0
 Group:          Documentation/HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.2.2/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-3.2.3/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-3.2.2/package/yast2-pkg-bindings.changes     
2017-03-29 18:42:29.252988637 +0200
+++ new/yast2-pkg-bindings-3.2.3/package/yast2-pkg-bindings.changes     
2017-06-02 10:47:52.094711532 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Fri Jun  2 08:42:12 UTC 2017 - igonzalezs...@suse.com
+
+- Fix pkgGpgCheck callback crashing when reporting SrcPackages
+  (bsc#1037210) (by mlandres)
+- 3.2.3
+
+-------------------------------------------------------------------
 Wed Mar 29 16:35:24 UTC 2017 - lsle...@suse.cz
 
 - Fixed failure when trying to save a plugin service (bsc#1021117)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.2.2/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-3.2.3/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-3.2.2/package/yast2-pkg-bindings.spec        
2017-03-29 18:42:29.252988637 +0200
+++ new/yast2-pkg-bindings-3.2.3/package/yast2-pkg-bindings.spec        
2017-06-02 10:47:52.094711532 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.2.2
+Version:        3.2.3
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.2.2/src/Callbacks.cc 
new/yast2-pkg-bindings-3.2.3/src/Callbacks.cc
--- old/yast2-pkg-bindings-3.2.2/src/Callbacks.cc       2017-03-29 
18:42:29.256988637 +0200
+++ new/yast2-pkg-bindings-3.2.3/src/Callbacks.cc       2017-06-02 
10:41:07.190711532 +0200
@@ -728,12 +728,16 @@
       YCPMap data;
 
       if (callback._set) {
-        // Package
-        const zypp::Package::constPtr & package_r = 
userData_r.get<zypp::Package::constPtr>("Package");
-        YCPString package = userData_r.get<std::string>("Package", 
package_r->name());
+        // Package or SrcPackage (ResObject is common base class)
+       zypp::ResObject::constPtr resobject_r;
+       if ( userData_r.hasvalue( "ResObject" ) )
+         resobject_r = userData_r.get<zypp::ResObject::constPtr>( "ResObject" 
);
+       else // legacy callback sending "zypp::Package::constPtr "Package"
+         resobject_r = userData_r.get<zypp::Package::constPtr>("Package");
+        YCPString package = resobject_r->name();
         data->add(YCPString("Package"), package);
 
-        const zypp::RepoInfo repo = package_r->repoInfo();
+        const zypp::RepoInfo repo = resobject_r->repoInfo();
         const std::string url = repo.rawUrl().asString();
         data->add(YCPString("RepoMediaUrl"), YCPString(url));
 


Reply via email to