Skip to content

Commit

Permalink
- added option to include additional logs (bnc#806924)
Browse files Browse the repository at this point in the history
- 3.0.1
  • Loading branch information
jsuchome committed Aug 19, 2013
1 parent c57aa9e commit 75d5a82
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.0.0
3.0.1
6 changes: 6 additions & 0 deletions package/yast2-support.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 19 10:50:52 CEST 2013 - jsuchome@suse.cz

- added option to include additional logs (bnc#806924)
- 3.0.1

-------------------------------------------------------------------
Wed Jul 31 08:42:56 UTC 2013 - yast-devel@opensuse.org

Expand Down
6 changes: 6 additions & 0 deletions src/include/support/dialogs.rb
Expand Up @@ -448,6 +448,11 @@ def ParametersDialog
Id(:rpm_check),
_("Performs an rpm -V for each installed rpm"),
Support.rpm_check
),
Item(
Id(:additional_logs),
_("Include all log file lines, gather additional rotated logs"),
Support.additional_logs
)
]
# Support configure1 dialog contents
Expand Down Expand Up @@ -558,6 +563,7 @@ def ParametersDialog
Support.minimal_logs = Builtins.contains(selected, :minimal_logs)
Support.include_slp = Builtins.contains(selected, :include_slp)
Support.rpm_check = Builtins.contains(selected, :rpm_check)
Support.additional_logs = Builtins.contains(selected, :additional_logs)

case Convert.to_symbol(UI.QueryWidget(:rb, :CurrentButton))
when :use_defaults
Expand Down
3 changes: 3 additions & 0 deletions src/modules/Support.rb
Expand Up @@ -78,6 +78,7 @@ def main
@minimal_logs = false
@include_slp = false
@rpm_check = false
@additional_logs = false
@novell_number = ""

@log_files = {}
Expand Down Expand Up @@ -230,6 +231,7 @@ def GetParameterList
parameters = Builtins.sformat("%1 %2", parameters, "-m") if @minimal_logs
parameters = Builtins.sformat("%1 %2", parameters, "-s") if @include_slp
parameters = Builtins.sformat("%1 %2", parameters, "-v") if @rpm_check
parameters = Builtins.sformat("%1 %2", parameters, "-l") if @additional_logs
if Ops.greater_than(Builtins.size(@novell_number), 0)
parameters = Builtins.sformat(
"%1 %2 %3",
Expand Down Expand Up @@ -466,6 +468,7 @@ def AutoPackages
publish :variable => :minimal_logs, :type => "boolean"
publish :variable => :include_slp, :type => "boolean"
publish :variable => :rpm_check, :type => "boolean"
publish :variable => :additional_logs, :type => "boolean"
publish :variable => :novell_number, :type => "string"
publish :variable => :log_files, :type => "map <string, any>"
publish :variable => :browser, :type => "string"
Expand Down

0 comments on commit 75d5a82

Please sign in to comment.