Skip to content

Commit

Permalink
Profile Location: Use Report instead of Popup to not block AutoYast (#…
Browse files Browse the repository at this point in the history
…243)

* Profile Location: Use Report instead of Popup to not block AutoYast

* Bumped version and updated changelog.
  • Loading branch information
teclator committed Aug 26, 2016
1 parent 883d3a4 commit 4d2a104
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions package/autoyast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 26 09:39:55 UTC 2016 - kanderssen@suse.com

- Profile Location: Use Report instead of Popup to not block
AutoYast if not configured to. (bnc#988949)
- 3.1.149

-------------------------------------------------------------------
Thu Aug 25 14:10:57 CEST 2016 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/autoyast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: autoyast2
Version: 3.1.148
Version: 3.1.149
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
1 change: 1 addition & 0 deletions src/include/autoinstall/autoinst_dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def initialize_autoinstall_autoinst_dialogs(include_target)
textdomain "autoinst"
Yast.import "Label"
Yast.import "Storage"
Yast.import "Popup"
end

# Shows a dialog when 'control file' can't be found
Expand Down
6 changes: 3 additions & 3 deletions src/modules/ProfileLocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def main
Yast.import "StorageControllers"
Yast.import "Mode"
Yast.import "Installation"
Yast.import "Popup"
Yast.import "Report"
Yast.import "Label"
Yast.import "URL"

Expand Down Expand Up @@ -153,7 +153,7 @@ def Process
raise Break if AutoinstConfig.scheme == "device"
end
if AutoinstConfig.scheme == "label"
Popup.Error(_("label not found while looking for autoyast profile"))
Report.Error(_("label not found while looking for autoyast profile"))
end
end
filename = basename(AutoinstConfig.filepath)
Expand All @@ -177,7 +177,7 @@ def Process
if !ret
# autoyast hit an error while fetching it's config file
error = _("An error occurred while fetching the profile:\n")
Popup.Error(Ops.add(error, @GET_error))
Report.Error(Ops.add(error, @GET_error))
return false
end
tmp = Convert.to_string(SCR.Read(path(".target.string"), localfile))
Expand Down

0 comments on commit 4d2a104

Please sign in to comment.