Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2016-02-25 21:53:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-pkg-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-pkg-bindings"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-pkg-bindings/yast2-pkg-bindings.changes    
2015-10-20 16:20:51.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes   
    2016-02-25 21:53:20.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Feb 15 10:49:39 UTC 2016 - [email protected]
+
+- Expose update notifications through PkgFunctions::CommitHelper
+- 3.1.32
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.WMhZtZ/_old  2016-02-25 21:53:21.000000000 +0100
+++ /var/tmp/diff_new_pack.WMhZtZ/_new  2016-02-25 21:53:21.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-pkg-bindings-devel-doc
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.31
+Version:        3.1.32
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.WMhZtZ/_old  2016-02-25 21:53:21.000000000 +0100
+++ /var/tmp/diff_new_pack.WMhZtZ/_new  2016-02-25 21:53:21.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-pkg-bindings
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.31
+Version:        3.1.32
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-3.1.31.tar.bz2 -> yast2-pkg-bindings-3.1.32.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.31/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-3.1.32/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-3.1.31/package/yast2-pkg-bindings-devel-doc.spec     
2015-10-09 09:40:10.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.32/package/yast2-pkg-bindings-devel-doc.spec     
2016-02-18 15:35:19.000000000 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.31
+Version:        3.1.32
 Release:        0
 License:        GPL-2.0
 Group:          Documentation/HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.31/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-3.1.32/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-3.1.31/package/yast2-pkg-bindings.changes    
2015-10-09 09:40:10.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.32/package/yast2-pkg-bindings.changes    
2016-02-18 15:35:19.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Mon Feb 15 10:49:39 UTC 2016 - [email protected]
+
+- Expose update notifications through PkgFunctions::CommitHelper
+- 3.1.32
+
+-------------------------------------------------------------------
 Thu Oct  8 21:07:44 UTC 2015 - [email protected]
 
 - Add pkgGpgCheck callback (bsc#948608)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.31/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-3.1.32/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-3.1.31/package/yast2-pkg-bindings.spec       
2015-10-09 09:40:10.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.32/package/yast2-pkg-bindings.spec       
2016-02-18 15:35:19.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.31
+Version:        3.1.32
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.31/src/Package.cc 
new/yast2-pkg-bindings-3.1.32/src/Package.cc
--- old/yast2-pkg-bindings-3.1.31/src/Package.cc        2015-10-09 
09:40:10.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.32/src/Package.cc        2016-02-18 
15:35:19.000000000 +0100
@@ -2053,7 +2053,7 @@
     {}
 
     OldStyleCommitResult( const zypp::ZYppCommitResult & result_r )
-    : _result( 0 )
+    : _result( 0 ), _updateMessages(result_r.updateMessages())
     {
       const zypp::ZYppCommitResult::TransactionStepList & steps( 
result_r.transactionStepList() );
       for_( step, steps.begin(), steps.end() )
@@ -2106,6 +2106,11 @@
      * list of kind:source resolvables remaining (due to wrong media)
      **/
     PoolItemList _srcremaining;
+
+    /**
+     * update notifications
+     **/
+    zypp::UpdateNotifications _updateMessages;
   };
   ///////////////////////////////////////////////////////////////////
 } // namespace
@@ -2185,6 +2190,31 @@
     }
     ret->add(srclist);
 
+  /* Retrieve installation/update messages from libzypp */
+  YCPList msglist;
+  for (zypp::UpdateNotifications::const_iterator it = 
result._updateMessages.begin(); it != result._updateMessages.end(); ++it)
+  {
+    std::string messagePath = zypp::Pathname::assertprefix(_target_root, 
it->file()).asString();
+    std::ifstream in(messagePath, std::ios::in);
+    if (in) { /* If the file exists, read the content */
+      YCPMap msg;
+      std::string text((std::istreambuf_iterator<char>(in)), 
std::istreambuf_iterator<char>());
+      /* Package name */
+      msg->add(YCPString("solvable"), YCPString(it->solvable().name()));
+      /* Where the message can be found after installation */
+      msg->add(YCPString("installationPath"), 
YCPString(it->file().asString()));
+      /* Where the message can be found currently (during installation differs 
from installationPath) */
+      msg->add(YCPString("currentPath"), YCPString(messagePath));
+      /* Message content */
+      msg->add(YCPString("text"), YCPString(text));
+      msglist->add(msg);
+      in.close();
+    } else { /* If the file does not exist (unexpected), log the error */
+      y2error("Message file couldn't be found: %s", messagePath.c_str());
+    }
+  }
+  ret->add(msglist);
+
     return ret;
 }
 
@@ -2241,7 +2271,7 @@
    if medianr > 0, only packages from this media are installed
 
    @param integer medianr Media Number
-   @return list [ int successful, list failed, list remaining, list 
srcremaining ]
+   @return list [ int successful, list failed, list remaining, list 
srcremaining, list update_messages ]
    The 'successful' value will be negative, if installation was aborted !
 
 */
@@ -2279,7 +2309,7 @@
  *   the default is $["download_mode":`default, "medium_nr":0 (all media),
  *      "dry_run":false, "exclude_docs":false, "no_signature":false],
  *
- *  @return list [ int successful, list failed, list remaining, list 
srcremaining ]
+ *  @return list [ int successful, list failed, list remaining, list 
srcremaining, list update_messages ]
  * The 'successful' value will be negative, if installation was aborted !
 */
 /* TYPEINFO: list<any>(integer)*/


Reply via email to