Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package yast2-ycp-ui-bindings for
openSUSE:Factory checked in at 2022-04-08 00:27:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings (Old)
and /work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-ycp-ui-bindings"
Fri Apr 8 00:27:28 2022 rev:88 rq:967347 version:4.5.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings/yast2-ycp-ui-bindings.changes
2022-02-06 23:53:31.451123546 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new.1900/yast2-ycp-ui-bindings.changes
2022-04-08 00:27:58.274152248 +0200
@@ -1,0 +2,12 @@
+Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <[email protected]>
+
+- Bump version to 4.5.0 (#bsc1198109)
+
+-------------------------------------------------------------------
+Tue Mar 15 11:45:57 UTC 2022 - Stefan Hundhammer <[email protected]>
+
+- Modernized the Wizard2.rb example to use real Ruby
+- Added a new example Wizard-RelNotes.rb to test the release notes
+ viewer that is built into the YQWizard (bsc#1195158)
+
+-------------------------------------------------------------------
Old:
----
yast2-ycp-ui-bindings-4.4.1.tar.bz2
New:
----
yast2-ycp-ui-bindings-4.5.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ycp-ui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.A6oXim/_old 2022-04-08 00:27:59.262141159 +0200
+++ /var/tmp/diff_new_pack.A6oXim/_new 2022-04-08 00:27:59.274141025 +0200
@@ -21,7 +21,7 @@
%define yui_so 16
Name: yast2-ycp-ui-bindings
-Version: 4.4.1
+Version: 4.5.0
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-ycp-ui-bindings-4.4.1.tar.bz2 ->
yast2-ycp-ui-bindings-4.5.0.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ycp-ui-bindings-4.4.1/examples/Wizard-RelNotes.rb
new/yast2-ycp-ui-bindings-4.5.0/examples/Wizard-RelNotes.rb
--- old/yast2-ycp-ui-bindings-4.4.1/examples/Wizard-RelNotes.rb 1970-01-01
01:00:00.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.5.0/examples/Wizard-RelNotes.rb 2022-04-06
15:42:13.000000000 +0200
@@ -0,0 +1,147 @@
+# encoding: utf-8
+#
+# Wizard example with steps and release notes.
+#
+# Note: Ruby applications are discouraged from using the Wizard widget
directly.
+# Use the Wizard module instead.
+#
+
+module Yast
+ class WizardClient < Client
+ include Yast::Logger
+ YAST_ICON = "/usr/share/icons/hicolor/scalable/apps/yast.svg".freeze
+
+ def main
+ Yast.import "UI"
+
+ return unless ensure_wizard_widget
+
+ UI.OpenDialog(Opt(:defaultsize), wizard_dialog)
+ set_up_wizard
+ event_loop
+ UI.CloseDialog
+ nil
+ end
+
+ def event_loop
+ while true
+ event = UI.WaitForEvent
+ log.info("Got event: #{event}")
+ break if event["ID"] == :abort
+
+ display_event(event)
+ end
+ end
+
+ def ensure_wizard_widget
+ return true if UI.HasSpecialWidget(:Wizard)
+
+ msg = "FATAL: This works only with UIs that provide the wizard widget!"
+ log.error(msg)
+ puts(msg)
+ false
+ end
+
+ def wizard_dialog
+ Wizard(
+ Opt(:stepsEnabled),
+ :back, "&Back",
+ :abort, "Ab&ort",
+ :next, "&Next"
+ )
+ end
+
+ def set_up_wizard
+ UI.WizardCommand(term(:SetDialogIcon, YAST_ICON))
+ UI.WizardCommand(term(:SetDialogHeading, "Welcome to the YaST2
installation"))
+ UI.WizardCommand(term(:SetHelpText, help_text))
+ add_wizard_steps
+ add_release_notes
+ end
+
+ def help_text
+ "<p>This is a help text.</p>" +
+ "<p>It should be helpful.</p>" +
+ "<p>If it isn't helpful, it should rather not be called a <i>help
text</i>.</p>"
+ end
+
+ def add_wizard_steps
+ UI.WizardCommand(term(:AddStepHeading, "Base Installation"))
+ UI.WizardCommand(term(:AddStep, "Language", "lang"))
+ UI.WizardCommand(term(:AddStep, "Installation Settings", "proposal"))
+ UI.WizardCommand(term(:AddStep, "Perform Installation", "doit"))
+
+ UI.WizardCommand(term(:AddStepHeading, "Configuration"))
+ UI.WizardCommand(term(:AddStep, "Root Password", "root_pw"))
+ UI.WizardCommand(term(:AddStep, "Network", "net"))
+ UI.WizardCommand(term(:AddStep, "Online Update", "you"))
+ UI.WizardCommand(term(:AddStep, "Users", "auth"))
+ UI.WizardCommand(term(:AddStep, "Clean Up", "suse_config"))
+ UI.WizardCommand(term(:AddStep, "Release Notes", "rel_notes"))
+ UI.WizardCommand(term(:AddStep, "Device Configuration", "hw_proposal"))
+ UI.WizardCommand(term(:UpdateSteps))
+
+ UI.WizardCommand(term(:SetCurrentStep, "net"))
+ end
+ end
+
+ def display_event(event)
+ serial = event["EventSerialNo"]
+ type = event["EventType"]
+ id = event["ID"]
+
+ UI.ReplaceWidget(
+ Id(:contents),
+ HVSquash(
+ VBox(
+ Heading("Caught event:"),
+ VSpacing(0.5),
+ Left(Label("Type: #{type}")),
+ Left(Label("ID: #{id}")),
+ Left(Label("Serial No: #{serial}"))
+ )
+ )
+ )
+ end
+
+ def add_release_notes
+ UI.SetReleaseNotes(release_notes_map)
+ UI.WizardCommand(term(:ShowReleaseNotesButton, "Release Notes",
"wizard_rel_notes"))
+ end
+
+ def release_notes_map
+ {
+ "SLES" => sles_release_notes,
+ "Foo" => foo_release_notes
+ }
+ end
+
+ def sles_release_notes
+ File.read("./RELEASE-NOTES.en.rtf")
+ end
+
+ def foo_release_notes
+ # Release notes with an external link (bsc#1195158):
+ # A click on the link should not clear the content.
+ notes = <<~EOF
+ <h1><a name="foo">Foo Release Notes</a></h1>
+ <p>Is it a foo? Is it a bar? You decide.</p>
+ <p>No matter if it's foo or bar, it will be good for you!</p>
+ <p>See more at the <a href="https://www.suse.com/">SUSE home
page</<a>.</p>
+ <p>And if you click here, the content should not disappear!</p>
+ EOF
+
+ notes += "<br>" * 20
+ # Internal links should work, no matter if they are valid or not.
+ notes += <<~EOF
+ <p><i>
+ Back to the
+ <a href="#foo">top</a> or
+ <a href="#anywhere">anywhere</a>
+ </i></p>
+ EOF
+ notes
+ end
+end
+
+Yast::WizardClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-4.4.1/examples/Wizard2.rb
new/yast2-ycp-ui-bindings-4.5.0/examples/Wizard2.rb
--- old/yast2-ycp-ui-bindings-4.4.1/examples/Wizard2.rb 2022-02-03
10:29:37.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.5.0/examples/Wizard2.rb 2022-04-06
15:42:13.000000000 +0200
@@ -1,50 +1,70 @@
# encoding: utf-8
-
-# Example of using the Wizard widget.
#
-# Note: YCP applications are discouraged from using the Wizard widget directly.
+# Wizard example with steps.
+#
+# Note: Ruby applications are discouraged from using the Wizard widget
directly.
# Use the Wizard module instead.
+#
+
module Yast
- class Wizard2Client < Client
+ class WizardClient < Client
+ include Yast::Logger
+ YAST_ICON = "/usr/share/icons/hicolor/scalable/apps/yast.svg".freeze
+
def main
Yast.import "UI"
- if !UI.HasSpecialWidget(:Wizard)
- Builtins.y2error(
- "This works only with UIs that provide the wizard widget!"
- )
- return
+
+ return unless ensure_wizard_widget
+
+ UI.OpenDialog(Opt(:defaultsize), wizard_dialog)
+ set_up_wizard
+ event_loop
+ UI.CloseDialog
+ nil
+ end
+
+ def event_loop
+ while true
+ event = UI.WaitForEvent
+ log.info("Got event: #{event}")
+ break if event["ID"] == :abort
+
+ display_event(event)
end
+ end
- @help_text = "<p>This is a help text.</p>" +
- "<p>It should be helpful.</p>" +
- "<p>If it isn't helpful, it should rather not be called a <i>help
text</i>.</p>"
-
- UI.OpenDialog(
- Opt(:defaultsize),
- Wizard(
- Opt(:stepsEnabled),
- :back,
- "&Back",
- :abort,
- "Ab&ort",
- :next,
- "&Next"
- )
- )
+ def ensure_wizard_widget
+ return true if UI.HasSpecialWidget(:Wizard)
- # UI::DumpWidgetTree();
+ msg = "FATAL: This works only with UIs that provide the wizard widget!"
+ log.error(msg)
+ puts(msg)
+ false
+ end
- UI.WizardCommand(
- term(
- :SetDialogIcon,
- "/usr/share/YaST2/theme/current/icons/22x22/apps/YaST.png"
- )
- )
- UI.WizardCommand(
- term(:SetDialogHeading, "Welcome to the YaST2 installation")
+ def wizard_dialog
+ Wizard(
+ Opt(:stepsEnabled),
+ :back, "&Back",
+ :abort, "Ab&ort",
+ :next, "&Next"
)
- UI.WizardCommand(term(:SetHelpText, @help_text))
+ end
+
+ def set_up_wizard
+ UI.WizardCommand(term(:SetDialogIcon, YAST_ICON))
+ UI.WizardCommand(term(:SetDialogHeading, "Welcome to the YaST2
installation"))
+ UI.WizardCommand(term(:SetHelpText, help_text))
+ add_wizard_steps
+ end
+
+ def help_text
+ "<p>This is a help text.</p>" +
+ "<p>It should be helpful.</p>" +
+ "<p>If it isn't helpful, it should rather not be called a <i>help
text</i>.</p>"
+ end
+ def add_wizard_steps
UI.WizardCommand(term(:AddStepHeading, "Base Installation"))
UI.WizardCommand(term(:AddStep, "Language", "lang"))
UI.WizardCommand(term(:AddStep, "Installation Settings", "proposal"))
@@ -59,44 +79,29 @@
UI.WizardCommand(term(:AddStep, "Release Notes", "rel_notes"))
UI.WizardCommand(term(:AddStep, "Device Configuration", "hw_proposal"))
UI.WizardCommand(term(:UpdateSteps))
-
- if false
- UI.WizardCommand(term(:SetAbortButtonLabel, "&Cancel"))
- UI.WizardCommand(term(:SetBackButtonLabel, ""))
- UI.WizardCommand(term(:SetNextButtonLabel, "&Accept"))
- end
-
+
UI.WizardCommand(term(:SetCurrentStep, "net"))
+ end
+ end
- while true
- @event = UI.WaitForEvent
-
- Builtins.y2milestone("Got event: %1", @event)
-
- break if Ops.get(@event, "ID") == :abort
-
- @serial = Ops.get_integer(@event, "EventSerialNo", 0)
- @type = Ops.get_string(@event, "EventType", "")
- @id = Ops.get_symbol(@event, "ID", :nil)
-
-
- UI.ReplaceWidget(
- Id(:contents),
- VBox(
- Heading("Caught event:"),
- VSpacing(0.5),
- Label(Ops.add("Serial No: ", Builtins.tostring(@serial))),
- Label(Ops.add("Type: ", @type)),
- Label(Ops.add("ID: ", Builtins.tostring(@id)))
- )
+ def display_event(event)
+ serial = event["EventSerialNo"]
+ type = event["EventType"]
+ id = event["ID"]
+
+ UI.ReplaceWidget(
+ Id(:contents),
+ HVSquash(
+ VBox(
+ Heading("Caught event:"),
+ VSpacing(0.5),
+ Left(Label("Type: #{type}")),
+ Left(Label("ID: #{id}")),
+ Left(Label("Serial No: #{serial}"))
)
- end
-
- UI.CloseDialog
-
- nil
- end
+ )
+ )
end
end
-Yast::Wizard2Client.new.main
+Yast::WizardClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ycp-ui-bindings-4.4.1/package/yast2-ycp-ui-bindings.changes
new/yast2-ycp-ui-bindings-4.5.0/package/yast2-ycp-ui-bindings.changes
--- old/yast2-ycp-ui-bindings-4.4.1/package/yast2-ycp-ui-bindings.changes
2022-02-03 10:29:37.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.5.0/package/yast2-ycp-ui-bindings.changes
2022-04-06 15:42:13.000000000 +0200
@@ -1,4 +1,16 @@
-------------------------------------------------------------------
+Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <[email protected]>
+
+- Bump version to 4.5.0 (#bsc1198109)
+
+-------------------------------------------------------------------
+Tue Mar 15 11:45:57 UTC 2022 - Stefan Hundhammer <[email protected]>
+
+- Modernized the Wizard2.rb example to use real Ruby
+- Added a new example Wizard-RelNotes.rb to test the release notes
+ viewer that is built into the YQWizard (bsc#1195158)
+
+-------------------------------------------------------------------
Tue Feb 1 15:38:55 UTC 2022 - Stefan Hundhammer <[email protected]>
- Added UI.AskForWidgetStyle() (jsc#SLE-20564)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ycp-ui-bindings-4.4.1/package/yast2-ycp-ui-bindings.spec
new/yast2-ycp-ui-bindings-4.5.0/package/yast2-ycp-ui-bindings.spec
--- old/yast2-ycp-ui-bindings-4.4.1/package/yast2-ycp-ui-bindings.spec
2022-02-03 10:29:37.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.5.0/package/yast2-ycp-ui-bindings.spec
2022-04-06 15:42:13.000000000 +0200
@@ -20,7 +20,7 @@
%define yui_so 16
Name: yast2-ycp-ui-bindings
-Version: 4.4.1
+Version: 4.5.0
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build