Skip to content

Commit

Permalink
merged with SLE-12-SP5
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Sep 9, 2019
2 parents 617fb41 + 3780990 commit a228e35
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-services-manager.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 6 14:28:55 CEST 2019 - schubi@suse.de

- Set BaseTargets::GRAPHICAL and Target::GRAPHICAL if package "xdm"
will be installed (instead of xorg-x11-server) (bsc#1140735).
- 4.0.11

-------------------------------------------------------------------
Wed Dec 5 15:29:24 CET 2018 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-services-manager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
######################################################################

Name: yast2-services-manager
Version: 4.0.10
Version: 4.0.11
Release: 0
BuildArch: noarch

Expand Down
2 changes: 1 addition & 1 deletion src/modules/services_manager_target.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def import profile
# setting default_target due the defined environment
self.default_target = (Installation.x11_setup_needed &&
Arch.x11_setup_needed &&
Pkg.IsSelected("xorg-x11-server")) ? BaseTargets::GRAPHICAL : BaseTargets::MULTIUSER
Pkg.IsSelected("xdm")) ? BaseTargets::GRAPHICAL : BaseTargets::MULTIUSER
else
self.default_target = profile.target
end
Expand Down
2 changes: 1 addition & 1 deletion test/services_manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ module Yast
it "setting to graphical if X11 is available" do
expect(Installation).to receive(:x11_setup_needed).and_return(true)
expect(Arch).to receive(:x11_setup_needed).and_return(true)
expect(Pkg).to receive(:IsSelected).with("xorg-x11-server").and_return(true)
expect(Pkg).to receive(:IsSelected).with("xdm").and_return(true)
expect(ServicesManagerTarget).to receive(:import).and_call_original
expect(ServicesManager.import({})).to eq(true)
expect(ServicesManagerTarget.default_target).to eq("graphical")
Expand Down

0 comments on commit a228e35

Please sign in to comment.