Hello community,

here is the log from the commit of package yast2-update for openSUSE:Factory 
checked in at 2018-02-12 10:07:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-update (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-update.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-update"

Mon Feb 12 10:07:28 2018 rev:116 rq:574717 version:4.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-update/yast2-update.changes        
2018-01-17 21:43:40.524307294 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-update.new/yast2-update.changes   
2018-02-12 10:07:30.286176941 +0100
@@ -1,0 +2,6 @@
+Fri Feb  9 14:52:57 UTC 2018 - jlo...@suse.com
+
+- Adapt to new MountPoint API (part of fate#318196).
+- 4.0.9
+
+-------------------------------------------------------------------

Old:
----
  yast2-update-4.0.8.tar.bz2

New:
----
  yast2-update-4.0.9.tar.bz2

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

Other differences:
------------------
++++++ yast2-update.spec ++++++
--- /var/tmp/diff_new_pack.yM1S4N/_old  2018-02-12 10:07:30.834157192 +0100
+++ /var/tmp/diff_new_pack.yM1S4N/_new  2018-02-12 10:07:30.834157192 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-update
-Version:        4.0.8
+Version:        4.0.9
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -40,8 +40,8 @@
 BuildRequires:  rubygem(rspec)
 
 BuildRequires:  yast2-storage-ng >= 3.3.4
-# Y2Storage::Devicegraph#find_by_any_name
-Requires:       yast2-storage-ng >= 4.0.67
+# Y2Storage::Mountable#mount_path
+Requires:       yast2-storage-ng >= 4.0.90
 # FSSnapshotStore
 Requires:       yast2 >= 3.1.126
 Requires:       yast2-installation

++++++ yast2-update-4.0.8.tar.bz2 -> yast2-update-4.0.9.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.0.8/control/update.glade 
new/yast2-update-4.0.9/control/update.glade
--- old/yast2-update-4.0.8/control/update.glade 1970-01-01 01:00:00.000000000 
+0100
+++ new/yast2-update-4.0.9/control/update.glade 2018-02-12 10:07:30.902154741 
+0100
@@ -0,0 +1 @@
+symbolic link to update.xml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.0.8/package/yast2-update.changes 
new/yast2-update-4.0.9/package/yast2-update.changes
--- old/yast2-update-4.0.8/package/yast2-update.changes 2018-01-15 
11:03:14.000000000 +0100
+++ new/yast2-update-4.0.9/package/yast2-update.changes 2018-02-09 
16:00:22.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Fri Feb  9 14:52:57 UTC 2018 - jlo...@suse.com
+
+- Adapt to new MountPoint API (part of fate#318196).
+- 4.0.9
+
+-------------------------------------------------------------------
 Mon Jan 15 09:56:47 UTC 2018 - jreidin...@suse.com
 
 - remove obsolete rootpart_check_keyboard client that allows having
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.0.8/package/yast2-update.spec 
new/yast2-update-4.0.9/package/yast2-update.spec
--- old/yast2-update-4.0.8/package/yast2-update.spec    2018-01-15 
11:03:14.000000000 +0100
+++ new/yast2-update-4.0.9/package/yast2-update.spec    2018-02-09 
16:00:22.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-update
-Version:        4.0.8
+Version:        4.0.9
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -42,8 +42,8 @@
 BuildRequires:  rubygem(rspec)
 
 BuildRequires: yast2-storage-ng >= 3.3.4
-# Y2Storage::Devicegraph#find_by_any_name
-Requires:      yast2-storage-ng >= 4.0.67
+# Y2Storage::Mountable#mount_path
+Requires:      yast2-storage-ng >= 4.0.90
 # FSSnapshotStore
 Requires:      yast2 >= 3.1.126
 Requires:      yast2-installation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.0.8/src/modules/RootPart.rb 
new/yast2-update-4.0.9/src/modules/RootPart.rb
--- old/yast2-update-4.0.8/src/modules/RootPart.rb      2018-01-15 
11:03:14.000000000 +0100
+++ new/yast2-update-4.0.9/src/modules/RootPart.rb      2018-02-09 
16:00:22.000000000 +0100
@@ -142,7 +142,7 @@
       if what == :name
         # Name is known
         if Ops.get_string(i, what, "") != ""
-          return Ops.get_string(i, what, "") 
+          return Ops.get_string(i, what, "")
 
           # Linux partition, but no root FS found
         elsif Builtins.contains(
@@ -150,7 +150,7 @@
             Ops.get_symbol(i, :fs, :nil)
           )
           # label - name of sustem to update
-          return _("Unknown Linux System") 
+          return _("Unknown Linux System")
 
           # Non-Linux
         else
@@ -259,7 +259,7 @@
       end
 
       # now remove the mount points in the target system
-      staging.filesystems.map { |f| f.mountpoint = nil } if !keep_in_target
+      remove_mount_points(staging) unless keep_in_target
 
       # clear activated list
       @activated = []
@@ -451,7 +451,7 @@
             # button
             _("&Skip Mounting"),
             details
-          ) 
+          )
           # succeeded
         else
           # add device into the list of already checked partitions (with exit 
status 0);
@@ -494,7 +494,7 @@
 
       # #223878, do not call modprobe with empty mount_type
       if mount_type == ""
-        Builtins.y2warning("Unknown filesystem, skipping modprobe...") 
+        Builtins.y2warning("Unknown filesystem, skipping modprobe...")
         # #211916, sysfs, proc are not modular
       elsif !NON_MODULAR_FS.include?(mount_type)
         # #167976, was broken with "-t ", modprobe before adding it
@@ -1077,7 +1077,7 @@
 
       # Size of the /boot partition is satisfactory
       if Ops.greater_or_equal(bootsize, min_suggested_bootsize)
-        return true 
+        return true
 
         # Less than a hero
       else
@@ -1465,7 +1465,7 @@
             Builtins.y2milestone("Manual mount (/var) successful")
             manual_mount_successful = true
             break
-          end 
+          end
           # `cancel
         else
           Builtins.y2warning(
@@ -2164,6 +2164,15 @@
       Y2Storage::StorageManager.instance.staging
     end
 
+    # Remove mount point from all filesystems
+    #
+    # @param devicegraph [Y2Storage::Devicegraph]
+    def remove_mount_points(devicegraph)
+      devicegraph.filesystems.each do |filesystem|
+        filesystem.remove_mount_point unless filesystem.mount_point.nil?
+      end
+    end
+
     # It returns true if the given fstab entry matches with the given device
     # filesystem or false if not.
     #
@@ -2254,8 +2263,8 @@
       filesystem = fs_by_devicename(staging, name)
 
       if filesystem
-        filesystem.mountpoint = mountpoint
-        filesystem.mount_by = mount_by
+        filesystem.mount_path = mountpoint
+        filesystem.mount_point.mount_by = mount_by
       end
 
     end


Reply via email to