Hello community,

here is the log from the commit of package yast2-alternatives for 
openSUSE:Factory checked in at 2020-11-23 15:36:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-alternatives (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-alternatives.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-alternatives"

Mon Nov 23 15:36:03 2020 rev:9 rq:849346 version:4.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-alternatives/yast2-alternatives.changes    
2020-01-17 16:03:39.412390933 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-alternatives.new.5913/yast2-alternatives.changes
  2020-11-23 16:26:08.540463159 +0100
@@ -1,0 +2,7 @@
+Wed Nov 18 22:10:43 UTC 2020 - Josef Reidinger <jreidin...@suse.com>
+
+- Handle properly help command for alternatives client
+  (bsc#1172340)
+- 4.3.0
+
+-------------------------------------------------------------------

Old:
----
  yast2-alternatives-4.2.3.tar.bz2

New:
----
  yast2-alternatives-4.3.0.tar.bz2

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

Other differences:
------------------
++++++ yast2-alternatives.spec ++++++
--- /var/tmp/diff_new_pack.RM99ed/_old  2020-11-23 16:26:09.088464559 +0100
+++ /var/tmp/diff_new_pack.RM99ed/_new  2020-11-23 16:26:09.092464569 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-alternatives
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           yast2-alternatives
-Version:        4.2.3
+Version:        4.3.0
 Release:        0
 Summary:        YaST2 - Manage Update-alternatives switching
 License:        GPL-2.0-only

++++++ yast2-alternatives-4.2.3.tar.bz2 -> yast2-alternatives-4.3.0.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-alternatives-4.2.3/package/yast2-alternatives.changes 
new/yast2-alternatives-4.3.0/package/yast2-alternatives.changes
--- old/yast2-alternatives-4.2.3/package/yast2-alternatives.changes     
2020-01-16 14:18:31.000000000 +0100
+++ new/yast2-alternatives-4.3.0/package/yast2-alternatives.changes     
2020-11-19 10:02:51.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Nov 18 22:10:43 UTC 2020 - Josef Reidinger <jreidin...@suse.com>
+
+- Handle properly help command for alternatives client
+  (bsc#1172340)
+- 4.3.0
+
+-------------------------------------------------------------------
 Thu Jan 16 12:12:09 UTC 2020 - Dominique Leuenberger <dims...@opensuse.org>
 
 - Clean spec file using spec-cleaner (main goal: use %license,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-alternatives-4.2.3/package/yast2-alternatives.spec 
new/yast2-alternatives-4.3.0/package/yast2-alternatives.spec
--- old/yast2-alternatives-4.2.3/package/yast2-alternatives.spec        
2020-01-16 14:18:31.000000000 +0100
+++ new/yast2-alternatives-4.3.0/package/yast2-alternatives.spec        
2020-11-19 10:02:51.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-alternatives
-Version:        4.2.3
+Version:        4.3.0
 Release:        0
 Summary:        YaST2 - Manage Update-alternatives switching
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-alternatives-4.2.3/src/lib/y2_alternatives/client/start_checking_permissions.rb
 
new/yast2-alternatives-4.3.0/src/lib/y2_alternatives/client/start_checking_permissions.rb
--- 
old/yast2-alternatives-4.2.3/src/lib/y2_alternatives/client/start_checking_permissions.rb
   2020-01-16 14:18:31.000000000 +0100
+++ 
new/yast2-alternatives-4.3.0/src/lib/y2_alternatives/client/start_checking_permissions.rb
   2020-11-19 10:02:51.000000000 +0100
@@ -16,6 +16,7 @@
 #  To contact SUSE about this file by physical or electronic mail,
 #  you may find current contact information at www.suse.com
 
+require "yast"
 require "y2_alternatives/dialog/list_alternatives"
 
 Yast.import "Confirm"
@@ -24,9 +25,39 @@
   module Client
     # Checks if user is root and create a ListAlternatives dialog
     class StartCheckingPermissions
+      include Yast::I18n
+
       def main
+        textdomain "alternatives"
+
+        if Yast::WFM.Args.include?("help")
+          print_help
+          return true
+        elsif !Yast::WFM.Args.empty?
+          print_help
+          return false
+        end
+
         Dialog::ListAlternatives.run if Yast::Confirm.MustBeRoot
       end
+
+    private
+
+      def print_help
+        # TRANSLATORS: %s stands for CLI program to use instead of yast module
+        msg = format(
+          _("This module does not support command line. Use '%s' instead."),
+          "update-alternatives"
+        )
+
+        cmdline_description = {
+          "id"   => "alternatives",
+          "help" => msg
+        }
+
+        Yast.import "CommandLine"
+        Yast::CommandLine.Run(cmdline_description)
+      end
     end
   end
 end
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to