Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-users for openSUSE:Factory 
checked in at 2021-07-21 19:06:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-users (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-users.new.2632 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-users"

Wed Jul 21 19:06:15 2021 rev:244 rq:907085 version:4.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-users/yast2-users.changes  2021-07-17 
23:36:49.877880656 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-users.new.2632/yast2-users.changes        
2021-07-21 19:07:14.495381317 +0200
@@ -1,0 +2,7 @@
+Fri Jul 16 13:13:26 UTC 2021 - David Diaz <dgonza...@suse.com>
+
+- Use a more reliable way of knowing if a user is being
+  edited (related to bsc#1188068).
+- 4.4.4
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.BFT4Zk/_old  2021-07-21 19:07:15.019382228 +0200
+++ /var/tmp/diff_new_pack.BFT4Zk/_new  2021-07-21 19:07:15.019382228 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        4.4.3
+Version:        4.4.4
 Release:        0
 Summary:        YaST2 - User and Group Configuration
 License:        GPL-2.0-only

++++++ yast2-users-4.4.3.tar.bz2 -> yast2-users-4.4.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.4.3/package/yast2-users.changes 
new/yast2-users-4.4.4/package/yast2-users.changes
--- old/yast2-users-4.4.3/package/yast2-users.changes   2021-07-15 
12:59:28.000000000 +0200
+++ new/yast2-users-4.4.4/package/yast2-users.changes   2021-07-19 
10:28:28.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Fri Jul 16 13:13:26 UTC 2021 - David Diaz <dgonza...@suse.com>
+
+- Use a more reliable way of knowing if a user is being
+  edited (related to bsc#1188068).
+- 4.4.4
+
+-------------------------------------------------------------------
 Wed Jul 14 14:18:32 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <jlo...@suse.com>
 
 - Show warning when reading system settings (e.g., login.defs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.4.3/package/yast2-users.spec 
new/yast2-users-4.4.4/package/yast2-users.spec
--- old/yast2-users-4.4.3/package/yast2-users.spec      2021-07-15 
12:59:28.000000000 +0200
+++ new/yast2-users-4.4.4/package/yast2-users.spec      2021-07-19 
10:28:28.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        4.4.3
+Version:        4.4.4
 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.4.3/src/lib/users/dialogs/inst_user_first.rb 
new/yast2-users-4.4.4/src/lib/users/dialogs/inst_user_first.rb
--- old/yast2-users-4.4.3/src/lib/users/dialogs/inst_user_first.rb      
2021-07-15 12:59:28.000000000 +0200
+++ new/yast2-users-4.4.4/src/lib/users/dialogs/inst_user_first.rb      
2021-07-19 10:28:28.000000000 +0200
@@ -61,6 +61,11 @@
       # The dialog does not support to have both at the same time, imported 
users and a new user.
       @user = user unless imported_users?
 
+      # NOTE: the only way to know if the user is going to be created or 
edited is through
+      # {Y2Users::ConfigElement#attached?} method BEFORE the #user method 
attaches it to the current
+      # #config for validation purposes. See #editing_user?
+      @editing_user = !!user&.attached?
+
       @login_modified = false
       # do not open package progress wizard window
       @progress_orig = Progress.set(false)
@@ -232,11 +237,12 @@
 
     # Whether the user is being edited
     #
-    # It is assumed that the user is going to be edited if it already has a 
password.
+    # It is considered that the user is going to be edited if it was not 
attached to a configuration
+    # when the dialog was initialized
     #
     # @return [Boolean]
     def editing_user?
-      !user.password.nil?
+      @editing_user
     end
 
     # Checks whether the current information of the user is valid, reporting 
the problem otherwise

Reply via email to