Hello community,

here is the log from the commit of package yast2-kdump for openSUSE:Factory 
checked in at 2014-01-14 16:36:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-kdump (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-kdump.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-kdump"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-kdump/yast2-kdump.changes  2013-12-08 
19:50:21.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-kdump.new/yast2-kdump.changes     
2014-01-14 16:36:04.000000000 +0100
@@ -1,0 +2,7 @@
+Fri Jan 10 16:25:05 CET 2014 - [email protected]
+
+- Added command-line support for firmware-assisted dump
+  (FATE#315780)
+- 3.1.2
+
+-------------------------------------------------------------------

Old:
----
  yast2-kdump-3.1.1.tar.bz2

New:
----
  yast2-kdump-3.1.2.tar.bz2

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

Other differences:
------------------
++++++ yast2-kdump.spec ++++++
--- /var/tmp/diff_new_pack.DKNewE/_old  2014-01-14 16:36:05.000000000 +0100
+++ /var/tmp/diff_new_pack.DKNewE/_new  2014-01-14 16:36:05.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-kdump
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products 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-kdump
-Version:        3.1.1
+Version:        3.1.2
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -31,7 +31,7 @@
 BuildRequires:  update-desktop-files
 BuildRequires:  yast2
 BuildRequires:  yast2-bootloader
-BuildRequires:  yast2-devtools >= 3.0.6
+BuildRequires:  yast2-devtools >= 3.1.10
 BuildRequires:  yast2-storage
 BuildRequires:  yast2-testsuite
 

++++++ yast2-kdump-3.1.1.tar.bz2 -> yast2-kdump-3.1.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-kdump-3.1.1/VERSION 
new/yast2-kdump-3.1.2/VERSION
--- old/yast2-kdump-3.1.1/VERSION       2013-12-06 16:20:13.000000000 +0100
+++ new/yast2-kdump-3.1.2/VERSION       1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-3.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-kdump-3.1.1/package/yast2-kdump.changes 
new/yast2-kdump-3.1.2/package/yast2-kdump.changes
--- old/yast2-kdump-3.1.1/package/yast2-kdump.changes   2013-12-06 
16:20:13.000000000 +0100
+++ new/yast2-kdump-3.1.2/package/yast2-kdump.changes   2014-01-13 
10:19:44.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Fri Jan 10 16:25:05 CET 2014 - [email protected]
+
+- Added command-line support for firmware-assisted dump
+  (FATE#315780)
+- 3.1.2
+
+-------------------------------------------------------------------
 Fri Nov 29 11:04:38 CET 2013 - [email protected]
 
 - Added support for firmware-assisted dump (for ppc64 only)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-kdump-3.1.1/package/yast2-kdump.spec 
new/yast2-kdump-3.1.2/package/yast2-kdump.spec
--- old/yast2-kdump-3.1.1/package/yast2-kdump.spec      2013-12-06 
16:20:13.000000000 +0100
+++ new/yast2-kdump-3.1.2/package/yast2-kdump.spec      2014-01-13 
10:19:44.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-kdump
-Version:        3.1.1
+Version:        3.1.2
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -27,7 +27,7 @@
 License:        GPL-2.0
 Requires:      yast2 yast2-storage yast2-bootloader
 BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-testsuite 
yast2-storage yast2-bootloader
-BuildRequires:  yast2-devtools >= 3.0.6
+BuildRequires:  yast2-devtools >= 3.1.10
 BuildRequires:  rubygem-rspec
 
 Recommends:     kdump makedumpfile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-kdump-3.1.1/src/clients/kdump.rb 
new/yast2-kdump-3.1.2/src/clients/kdump.rb
--- old/yast2-kdump-3.1.1/src/clients/kdump.rb  2013-11-28 12:45:33.000000000 
+0100
+++ new/yast2-kdump-3.1.2/src/clients/kdump.rb  2014-01-13 10:19:44.000000000 
+0100
@@ -221,6 +221,10 @@
             # TRANSLATORS: CommandLine help
             "help" => _("Disable option")
           },
+          "status"      => {
+            # TRANSLATORS: CommandLine help
+            "help" => _("Shows current option status")
+          },
           "alloc_mem"   => {
             "type" => "integer",
             # TRANSLATORS: CommandLine help
@@ -351,6 +355,23 @@
         }
       }
 
+      if Kdump.fadump_supported?
+        @cmdline_description["actions"]["fadump"] = {
+          "handler" => fun_ref(method(:cmd_handle_fadump), "boolean (map)"),
+          # TRANSLATORS: CommandLine help
+          "help" => _(
+            "Handles usage of firmware-assisted dump"
+          ),
+          "example" => [
+            "fadump status  # shows the current status (enabled/disabled)",
+            "fadump enable  # enables using fadump",
+            "fadump disable # disables using fadump",
+          ],
+        }
+
+        @cmdline_description["mappings"]["fadump"] = ["enable", "disable", 
"status"]
+      end
+
       # is this proposal or not?
       @propose = false
       @args = WFM.Args
@@ -625,8 +646,8 @@
         Builtins.sformat(
           _("Kdump immediate reboots: %1"),
           Ops.get(Kdump.KDUMP_SETTINGS, "KDUMP_IMMEDIATE_REBOOT") == "yes" ?
-            _("ENABLED") :
-            _("DISABLED")
+            _("Enabled") :
+            _("Disabled")
         )
       )
 
@@ -701,6 +722,10 @@
 
       CommandLine.Print("")
 
+      if Kdump.fadump_supported?
+        show_fadump_status
+        CommandLine.Print("")
+      end
 
       true
     end
@@ -1223,6 +1248,32 @@
         return false
       end
     end
+
+    def show_fadump_status
+      CommandLine.Print(
+        _("Firmware-assisted dump: %{status}") %
+          { :status => Kdump.using_fadump? ?
+            _("Enabled") :
+            _("Disabled")
+          }
+      )
+    end
+
+    def cmd_handle_fadump(options)
+      if options["enable"]
+        return Kdump.use_fadump(true)
+      elsif options["disable"]
+        return Kdump.use_fadump(false)
+      elsif options["status"]
+        show_fadump_status
+        return true
+      else
+        # TRANSLATORS: CommandLine error message
+        CommandLine.Error(_("No option has been defined."))
+        return false
+      end
+    end
+
   end
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-kdump-3.1.1/src/include/kdump/uifunctions.rb 
new/yast2-kdump-3.1.2/src/include/kdump/uifunctions.rb
--- old/yast2-kdump-3.1.1/src/include/kdump/uifunctions.rb      2013-12-06 
16:20:13.000000000 +0100
+++ new/yast2-kdump-3.1.2/src/include/kdump/uifunctions.rb      2014-01-13 
10:19:44.000000000 +0100
@@ -1472,7 +1472,7 @@
               Opt(:notify),
               # T: Checkbox label
               _("Use &Firmware-Assisted Dump"),
-              Kdump.use_fadump?
+              Kdump.using_fadump?
             ),
             VSpacing(1)
           )

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to