Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sw_single: Check for -pkg UI Plug-In and Prompt to Install it if Needed #578

Merged
merged 4 commits into from Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions package/yast2-packager.changes
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Sep 15 12:35:42 UTC 2021 - Stefan Hundhammer <shundhammer@suse.com>

- Check if the "pkg" UI plug-in is available and if not, ask
the user if it should be installed
(jsc#SLE-20346, jsc#SLE-20462)
- 4.4.10

-------------------------------------------------------------------
Mon Aug 23 13:31:34 UTC 2021 - Ladislav Slezák <lslezak@suse.cz>

Expand Down
6 changes: 3 additions & 3 deletions package/yast2-packager.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-packager
Version: 4.4.9
Version: 4.4.10
Release: 0
Summary: YaST2 - Package Library
License: GPL-2.0-or-later
Expand Down Expand Up @@ -48,8 +48,8 @@ BuildRequires: ruby-solv
Requires: yast2-country-data >= 2.16.3
# raw_name
Requires: yast2-pkg-bindings >= 4.2.8
# Installation::InstallationInfo
Requires: yast2 >= 4.4.4
# UIExtensionChecker
Requires: yast2 >= 4.4.18
# unzipping license file
Requires: unzip
# HTTP, FTP, HTTPS modules (inst_productsources.ycp)
Expand Down
4 changes: 4 additions & 0 deletions src/clients/sw_single.rb
Expand Up @@ -8,6 +8,7 @@
require "y2packager/known_repositories"
require "y2packager/system_packages"
require "y2packager/resolvable"
require "ui/ui_extension_checker"

module Yast
# Purpose: contains dialog loop for workflows:
Expand Down Expand Up @@ -73,6 +74,9 @@ def main
return CommandLine.Run(@cmdline_description)
end

ui_extension_checker = UIExtensionChecker.new("pkg")
return unless ui_extension_checker.ok?

StartSWSingle()
end

Expand Down