Hello community,

here is the log from the commit of package gnome-disk-utility for 
openSUSE:Factory checked in at 2020-03-27 21:55:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-disk-utility (Old)
 and      /work/SRC/openSUSE:Factory/.gnome-disk-utility.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnome-disk-utility"

Fri Mar 27 21:55:08 2020 rev:68 rq:787916 version:3.34.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnome-disk-utility/gnome-disk-utility.changes    
2020-02-22 19:01:38.809779725 +0100
+++ 
/work/SRC/openSUSE:Factory/.gnome-disk-utility.new.3160/gnome-disk-utility.changes
  2020-03-27 21:55:24.842727021 +0100
@@ -1,0 +2,6 @@
+Sat Mar 21 18:05:44 UTC 2020 - Bjørn Lie <[email protected]>
+
+- Update to version 3.34.5:
+  + Wait until UDisks updates the unmounted filesystem.
+
+-------------------------------------------------------------------

Old:
----
  gnome-disk-utility-3.34.4.tar.xz

New:
----
  gnome-disk-utility-3.34.5.tar.xz

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

Other differences:
------------------
++++++ gnome-disk-utility.spec ++++++
--- /var/tmp/diff_new_pack.GJ1orP/_old  2020-03-27 21:55:25.402727346 +0100
+++ /var/tmp/diff_new_pack.GJ1orP/_new  2020-03-27 21:55:25.402727346 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           gnome-disk-utility
-Version:        3.34.4
+Version:        3.34.5
 Release:        0
 Summary:        Disks application for dealing with storage devices
 License:        GPL-2.0-or-later

++++++ gnome-disk-utility-3.34.4.tar.xz -> gnome-disk-utility-3.34.5.tar.xz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gnome-disk-utility-3.34.4/NEWS 
new/gnome-disk-utility-3.34.5/NEWS
--- old/gnome-disk-utility-3.34.4/NEWS  2020-02-16 15:03:54.000000000 +0100
+++ new/gnome-disk-utility-3.34.5/NEWS  2020-03-21 18:25:41.099436800 +0100
@@ -1,3 +1,9 @@
+3.34.5 - March 21, 2020
+=======================
+
+Kai Lüke:
+ * Wait until UDisks updates the unmounted filesystem
+
 3.34.4 - February 16, 2020
 ==========================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gnome-disk-utility-3.34.4/meson.build 
new/gnome-disk-utility-3.34.5/meson.build
--- old/gnome-disk-utility-3.34.4/meson.build   2020-02-16 15:03:54.000000000 
+0100
+++ new/gnome-disk-utility-3.34.5/meson.build   2020-03-21 18:25:41.103437000 
+0100
@@ -1,6 +1,6 @@
 project(
   'gnome-disk-utility', 'c',
-  version: '3.34.4',
+  version: '3.34.5',
   license: 'GPL2.0',
   default_options: 'buildtype=debugoptimized',
   meson_version: '>= 0.50.0',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gnome-disk-utility-3.34.4/src/libgdu/gduutils.c 
new/gnome-disk-utility-3.34.5/src/libgdu/gduutils.c
--- old/gnome-disk-utility-3.34.4/src/libgdu/gduutils.c 2020-02-16 
15:03:54.000000000 +0100
+++ new/gnome-disk-utility-3.34.5/src/libgdu/gduutils.c 2020-03-21 
18:25:41.215437200 +0100
@@ -1351,6 +1351,7 @@
   GList *object_iter;
   GTask *task;
   GCancellable *cancellable; /* borrowed ref */
+  guint last_mount_point_list_size; /* only for unuse_unmount_cb to check 
against a race in UDisks */
 } UnuseData;
 
 static void
@@ -1399,6 +1400,18 @@
     }
   else
     {
+      gint64 end_usec;
+      const gchar *const *mount_points;
+
+      end_usec = g_get_monotonic_time () + (G_USEC_PER_SEC * 5);
+
+      while (mount_points = udisks_filesystem_get_mount_points (filesystem),
+             (mount_points ? g_strv_length ((gchar **) mount_points) : 0) == 
data->last_mount_point_list_size &&
+             g_get_monotonic_time () < end_usec)
+      {
+        udisks_client_settle (data->client);
+      }
+
       unuse_data_iterate (data);
     }
 }
@@ -1492,6 +1505,10 @@
 
   if (filesystem_to_unmount != NULL)
     {
+      const gchar *const *mount_points;
+
+      mount_points = udisks_filesystem_get_mount_points 
(filesystem_to_unmount);
+      data->last_mount_point_list_size = mount_points ? g_strv_length ((gchar 
**) mount_points) : 0;
       udisks_filesystem_call_unmount (filesystem_to_unmount,
                                       g_variant_new ("a{sv}", NULL), /* 
options */
                                       data->cancellable, /* cancellable */


Reply via email to