Hello community,

here is the log from the commit of package yast2-users for openSUSE:Factory 
checked in at 2020-01-17 16:03:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-users (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-users.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-users"

Fri Jan 17 16:03:15 2020 rev:226 rq:764917 version:4.2.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-users/yast2-users.changes  2019-12-14 
12:02:32.431411149 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-users.new.26092/yast2-users.changes       
2020-01-17 16:03:22.096382741 +0100
@@ -1,0 +2,6 @@
+Thu Jan 16 09:46:36 UTC 2020 - Ludwig Nussel <[email protected]>
+
+- Disable block device selector in WSL (boo#1154238)
+- 4.2.7
+
+-------------------------------------------------------------------

Old:
----
  yast2-users-4.2.6.tar.bz2

New:
----
  yast2-users-4.2.7.tar.bz2

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

Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.jEfd5X/_old  2020-01-17 16:03:23.236383281 +0100
+++ /var/tmp/diff_new_pack.jEfd5X/_new  2020-01-17 16:03:23.240383283 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-users
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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-users
-Version:        4.2.6
+Version:        4.2.7
 Release:        0
 Summary:        YaST2 - User and Group Configuration
 License:        GPL-2.0-only

++++++ yast2-users-4.2.6.tar.bz2 -> yast2-users-4.2.7.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.2.6/package/yast2-users.changes 
new/yast2-users-4.2.7/package/yast2-users.changes
--- old/yast2-users-4.2.6/package/yast2-users.changes   2019-11-27 
10:45:26.000000000 +0100
+++ new/yast2-users-4.2.7/package/yast2-users.changes   2020-01-16 
10:57:59.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Thu Jan 16 09:46:36 UTC 2020 - Ludwig Nussel <[email protected]>
+
+- Disable block device selector in WSL (boo#1154238)
+- 4.2.7
+
+-------------------------------------------------------------------
 Mon Nov 25 15:37:16 UTC 2019 - Imobach Gonzalez Sosa <[email protected]>
 
 - bsc#1155735, bsc#1157541:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.2.6/package/yast2-users.spec 
new/yast2-users-4.2.7/package/yast2-users.spec
--- old/yast2-users-4.2.6/package/yast2-users.spec      2019-11-27 
10:45:26.000000000 +0100
+++ new/yast2-users-4.2.7/package/yast2-users.spec      2020-01-16 
10:57:59.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        4.2.6
+Version:        4.2.7
 Release:        0
 Summary:        YaST2 - User and Group Configuration
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-users-4.2.6/src/lib/users/widgets/public_key_selector.rb 
new/yast2-users-4.2.7/src/lib/users/widgets/public_key_selector.rb
--- old/yast2-users-4.2.6/src/lib/users/widgets/public_key_selector.rb  
2019-11-27 10:45:26.000000000 +0100
+++ new/yast2-users-4.2.7/src/lib/users/widgets/public_key_selector.rb  
2020-01-16 10:57:59.000000000 +0100
@@ -25,6 +25,7 @@
 require "yast2/popup"
 require "tmpdir"
 
+Yast.import "Arch"
 Yast.import "Label"
 Yast.import "UI"
 Yast.import "UsersSimple"
@@ -153,15 +154,20 @@
       #
       # @return [Yast::Term]
       def blk_device_selector
-        VBox(
-          Left(
-            HBox(
-              blk_devices_combo_box,
-              PushButton(Id(:refresh), Opt(:notify), Yast::Label.RefreshButton)
-            )
-          ),
+        # no block devices in WSL
+        if Yast::Arch.is_wsl
           Left(PushButton(Id(:browse), Opt(:notify), Yast::Label.BrowseButton))
-        )
+        else
+          VBox(
+            Left(
+              HBox(
+                blk_devices_combo_box,
+                PushButton(Id(:refresh), Opt(:notify), 
Yast::Label.RefreshButton)
+              )
+            ),
+            Left(PushButton(Id(:browse), Opt(:notify), 
Yast::Label.BrowseButton))
+          )
+        end
       end
 
       # UI which shows the public key content
@@ -234,6 +240,9 @@
       #
       # @return [String] Key content
       def read_key
+        # /mnt has windows drives mounted by default
+        return read_key_from("/mnt") if Yast::Arch.is_wsl
+
         select_blk_device
         dir = Dir.mktmpdir
         begin


Reply via email to