Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libdnf-plugin-txnupd for 
openSUSE:Factory checked in at 2021-03-24 16:12:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libdnf-plugin-txnupd (Old)
 and      /work/SRC/openSUSE:Factory/.libdnf-plugin-txnupd.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libdnf-plugin-txnupd"

Wed Mar 24 16:12:37 2021 rev:4 rq:880529 version:0.1.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/libdnf-plugin-txnupd/libdnf-plugin-txnupd.changes    
    2021-03-06 21:18:40.689238909 +0100
+++ 
/work/SRC/openSUSE:Factory/.libdnf-plugin-txnupd.new.2401/libdnf-plugin-txnupd.changes
      2021-03-24 16:12:37.787918716 +0100
@@ -1,0 +2,6 @@
+Mon Mar 22 14:36:00 UTC 2021 - Neal Gompa <ngomp...@gmail.com>
+
+- Update to 0.1.3
+  + Properly disable SWDB in any transactional update mode
+
+-------------------------------------------------------------------

Old:
----
  libdnf-plugin-txnupd-0.1.2.tar.gz

New:
----
  libdnf-plugin-txnupd-0.1.3.tar.gz

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

Other differences:
------------------
++++++ libdnf-plugin-txnupd.spec ++++++
--- /var/tmp/diff_new_pack.0Npq6x/_old  2021-03-24 16:12:38.263919216 +0100
+++ /var/tmp/diff_new_pack.0Npq6x/_new  2021-03-24 16:12:38.267919221 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           libdnf-plugin-txnupd
-Version:        0.1.2
+Version:        0.1.3
 Release:        0
 Summary:        Plugin for libdnf to implement transactional updates
 License:        LGPL-2.1-or-later

++++++ libdnf-plugin-txnupd-0.1.2.tar.gz -> libdnf-plugin-txnupd-0.1.3.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libdnf-plugin-txnupd-0.1.2/meson.build 
new/libdnf-plugin-txnupd-0.1.3/meson.build
--- old/libdnf-plugin-txnupd-0.1.2/meson.build  2021-03-05 20:36:59.000000000 
+0100
+++ new/libdnf-plugin-txnupd-0.1.3/meson.build  2021-03-22 15:34:11.000000000 
+0100
@@ -1,5 +1,5 @@
 project('libdnf-plugin-txnupd', 'cpp',
-    version : '0.1.2',
+    version : '0.1.3',
     license : 'LGPL-2.1-or-later',
     default_options : [
         'buildtype=debugoptimized',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libdnf-plugin-txnupd-0.1.2/src/txnupd.cpp 
new/libdnf-plugin-txnupd-0.1.3/src/txnupd.cpp
--- old/libdnf-plugin-txnupd-0.1.2/src/txnupd.cpp       2021-03-05 
20:36:59.000000000 +0100
+++ new/libdnf-plugin-txnupd-0.1.3/src/txnupd.cpp       2021-03-22 
15:34:11.000000000 +0100
@@ -115,20 +115,14 @@
         return true;
     }
 
-    /* Disable SWDB when in transactional update mode, as it
-     * it currently causes crashes with transactional updates,
-     * and it is not particularly useful for our case anyway.
-     */
-    if ((handle->transactional_update) || (handle->ext_transactional_update)) {
-        dnf_context_set_write_history(handle->context, FALSE);
-    }
-
     /* Check if we're already in a transactional update, possibly
      * externally invoked by tukit or some other consumer of tukit.
      * In this scenario, bail early to stop us from attempting to
      * create a transactional update inside of one in progress.
      */
     if (handle->ext_transactional_update) {
+        // Disable SWDB in transactional update mode
+        dnf_context_set_write_history(handle->context, FALSE);
         auto txnupdsnap_msg = std::string(info.name) + ": " + __func__ +
                               ": Warning: running within transactional update, 
disabling snapshot handling!";
         logger->warning(txnupdsnap_msg);
@@ -157,6 +151,12 @@
     auto transactionRoot = handle->transaction.getRoot();
     dnf_context_set_install_root(handle->context, transactionRoot.c_str());
 
+    /* Disable SWDB when in transactional update mode, as it
+     * it currently causes crashes with transactional updates,
+     * and it is not particularly useful for our case anyway.
+     */
+    dnf_context_set_write_history(handle->context, FALSE);
+
     /* Mark as being in the transactional update mode, so that
      * other functions using the handle can do the right thing later.
      */

Reply via email to