Hello community,

here is the log from the commit of package yast2-users for openSUSE:Factory 
checked in at 2019-01-24 14:00:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-users (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-users.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-users"

Thu Jan 24 14:00:26 2019 rev:215 rq:664698 version:4.1.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-users/yast2-users.changes  2019-01-10 
15:16:08.774758510 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-users.new.28833/yast2-users.changes       
2019-01-24 14:00:33.132247320 +0100
@@ -1,0 +2,6 @@
+Fri Jan 11 10:05:50 UTC 2019 - [email protected]
+
+- Fixed call to renamed method (bsc#1121473).
+- 4.1.6
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.zZ5sJC/_old  2019-01-24 14:00:33.692246682 +0100
+++ /var/tmp/diff_new_pack.zZ5sJC/_new  2019-01-24 14:00:33.700246674 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        4.1.5
+Version:        4.1.6
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-users-4.1.5.tar.bz2 -> yast2-users-4.1.6.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.1.5/package/yast2-users.changes 
new/yast2-users-4.1.6/package/yast2-users.changes
--- old/yast2-users-4.1.5/package/yast2-users.changes   2019-01-09 
08:51:21.000000000 +0100
+++ new/yast2-users-4.1.6/package/yast2-users.changes   2019-01-11 
12:40:30.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Fri Jan 11 10:05:50 UTC 2019 - [email protected]
+
+- Fixed call to renamed method (bsc#1121473).
+- 4.1.6
+
+-------------------------------------------------------------------
 Tue Jan  8 13:17:16 UTC 2019 - [email protected]
 
 - Fixed a syntax error in UsersPluginQuota.pm introduced
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.1.5/package/yast2-users.spec 
new/yast2-users-4.1.6/package/yast2-users.spec
--- old/yast2-users-4.1.5/package/yast2-users.spec      2019-01-09 
08:51:21.000000000 +0100
+++ new/yast2-users-4.1.6/package/yast2-users.spec      2019-01-11 
12:40:30.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        4.1.5
+Version:        4.1.6
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-users-4.1.5/src/lib/users/dialogs/inst_user_first.rb 
new/yast2-users-4.1.6/src/lib/users/dialogs/inst_user_first.rb
--- old/yast2-users-4.1.5/src/lib/users/dialogs/inst_user_first.rb      
2019-01-09 08:51:21.000000000 +0100
+++ new/yast2-users-4.1.6/src/lib/users/dialogs/inst_user_first.rb      
2019-01-11 12:40:30.000000000 +0100
@@ -250,7 +250,7 @@
       @user = {}
       @password = nil
       @use_pw_for_root = false
-      set_users_list([])
+      self.users_list = []
     end
 
     # Initializes the instance variables used to configure a new user
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.1.5/test/Makefile.am 
new/yast2-users-4.1.6/test/Makefile.am
--- old/yast2-users-4.1.5/test/Makefile.am      2019-01-09 08:51:21.000000000 
+0100
+++ new/yast2-users-4.1.6/test/Makefile.am      2019-01-11 12:40:30.000000000 
+0100
@@ -7,6 +7,7 @@
   lib/users/leaf_blk_device_test.rb \
   lib/users/ssh_public_key_test.rb \
   lib/users/dialogs/inst_root_first_test.rb \
+  lib/users/dialogs/inst_user_first_test.rb \
   lib/users/widgets/inst_root_first_test.rb \
   lib/users/widgets/public_key_selector_test.rb \
   dialogs_test.rb \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-users-4.1.5/test/lib/users/dialogs/inst_user_first.rb 
new/yast2-users-4.1.6/test/lib/users/dialogs/inst_user_first.rb
--- old/yast2-users-4.1.5/test/lib/users/dialogs/inst_user_first.rb     
2019-01-09 08:51:21.000000000 +0100
+++ new/yast2-users-4.1.6/test/lib/users/dialogs/inst_user_first.rb     
1970-01-01 01:00:00.000000000 +0100
@@ -1,71 +0,0 @@
-#!/usr/bin/env rspec
-# encoding: utf-8
-
-# Copyright (c) [2018] SUSE LLC
-#
-# All Rights Reserved.
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of version 2 of the GNU General Public License as published
-# by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
-# more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, contact SUSE LLC.
-#
-# To contact SUSE LLC about this file by physical or electronic mail, you may
-# find current contact information at www.suse.com.
-
-require_relative "../../../test_helper"
-require "users/dialogs/inst_user_first"
-
-describe Yast::InstUserFirstDialog do
-  subject(:dialog) { described_class.new }
-
-  before do
-    Users::UsersDatabase.all.clear
-
-    # Mock access time: files in root2 are more recent than files in root3
-    allow(File).to receive(:atime).with(/root2/).and_return(Time.new(2018))
-    allow(File).to receive(:atime).with(/root3/).and_return(Time.new(2017))
-  end
-
-  describe "#choose_users_handler" do
-    let(:users_to_import_dialog) { instance_double(Yast::UsersToImportDialog, 
run: nil) }
-    let(:root2_path) { FIXTURES_PATH.join("root2") }
-    let(:root3_path) { FIXTURES_PATH.join("root3") }
-
-    context "when there is a previous Linux installation" do
-      before do
-        Users::UsersDatabase.import(root3_path)
-      end
-
-      it "displays a dialog with importable users found" do
-        expect(Yast::UsersToImportDialog).to receive(:new)
-          .with(["b_user", "c_user"], [])
-          .and_return(users_to_import_dialog)
-
-        dialog.choose_users_handler
-      end
-    end
-
-    context "when there are multiple previous Linux installations" do
-      before do
-        Users::UsersDatabase.import(FIXTURES_PATH.join("root2"))
-        Users::UsersDatabase.import(FIXTURES_PATH.join("root3"))
-      end
-
-      it "displays a dialog with importable users found on the most recently 
accessed" do
-        expect(Yast::UsersToImportDialog).to receive(:new)
-          .with(["a_user"], [])
-          .and_return(users_to_import_dialog)
-
-        dialog.choose_users_handler
-      end
-    end
-  end
-end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-users-4.1.5/test/lib/users/dialogs/inst_user_first_test.rb 
new/yast2-users-4.1.6/test/lib/users/dialogs/inst_user_first_test.rb
--- old/yast2-users-4.1.5/test/lib/users/dialogs/inst_user_first_test.rb        
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-users-4.1.6/test/lib/users/dialogs/inst_user_first_test.rb        
2019-01-11 12:40:30.000000000 +0100
@@ -0,0 +1,89 @@
+#!/usr/bin/env rspec
+# encoding: utf-8
+
+# Copyright (c) [2018] SUSE LLC
+#
+# All Rights Reserved.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of version 2 of the GNU General Public License as published
+# by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, contact SUSE LLC.
+#
+# To contact SUSE LLC about this file by physical or electronic mail, you may
+# find current contact information at www.suse.com.
+
+require_relative "../../../test_helper"
+require "users/dialogs/inst_user_first"
+
+describe Yast::InstUserFirstDialog do
+  subject(:dialog) { described_class.new }
+
+  before do
+    Users::UsersDatabase.all.clear
+
+    # Mock access time: files in root2 are more recent than files in root3
+    allow(File).to receive(:atime).with(/root2/).and_return(Time.new(2018))
+    allow(File).to receive(:atime).with(/root3/).and_return(Time.new(2017))
+  end
+
+  describe "#run" do
+    context "when local users are disabled" do
+      before do
+        allow(Yast::ProductFeatures).to receive(:GetBooleanFeatureWithFallback)
+          .with("globals", "enable_local_users", true).and_return(false)
+      end
+
+      it "returns :auto" do
+        expect(dialog.run).to eq(:auto)
+      end
+
+      it "clears the users list" do
+        expect(dialog).to receive(:users_list=).with([]).and_call_original
+        dialog.run
+      end
+    end
+  end
+
+  describe "#choose_users_handler" do
+    let(:users_to_import_dialog) { instance_double(Yast::UsersToImportDialog, 
run: nil) }
+    let(:root2_path) { FIXTURES_PATH.join("root2") }
+    let(:root3_path) { FIXTURES_PATH.join("root3") }
+
+    context "when there is a previous Linux installation" do
+      before do
+        Users::UsersDatabase.import(root3_path)
+      end
+
+      it "displays a dialog with importable users found" do
+        expect(Yast::UsersToImportDialog).to receive(:new)
+          .with(["b_user", "c_user"], [])
+          .and_return(users_to_import_dialog)
+
+        dialog.choose_users_handler
+      end
+    end
+
+    context "when there are multiple previous Linux installations" do
+      before do
+        Users::UsersDatabase.import(FIXTURES_PATH.join("root2"))
+        Users::UsersDatabase.import(FIXTURES_PATH.join("root3"))
+      end
+
+      it "displays a dialog with importable users found on the most recently 
accessed" do
+        expect(Yast::UsersToImportDialog).to receive(:new)
+          .with(["a_user"], [])
+          .and_return(users_to_import_dialog)
+
+        dialog.choose_users_handler
+      end
+    end
+  end
+end


Reply via email to