Skip to content

Commit

Permalink
Move the proxy propose before software proposal is done
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Aug 24, 2023
1 parent 527b531 commit b1ce499
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions service/lib/agama/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,12 @@ def install_phase

progress.step("Partitioning") do
storage.install
proxy.propose
# propose software after /mnt is already separated, so it uses proper
# target
software.propose
end

ProxySetup.instance.propose

progress.step("Installing Software") { software.install }

on_target do
Expand All @@ -125,6 +124,13 @@ def software
end
end

# ProxySetup instance
#
# @return [ProxySetup]
def proxy
ProxySetup.instance
end

# Language manager
#
# @return [DBus::Clients::Locale]
Expand Down
2 changes: 1 addition & 1 deletion service/lib/agama/proxy_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run
end

def propose
on_target { add_packages } if Proxy.enabled
add_packages if Proxy.enabled
end

def install
Expand Down

0 comments on commit b1ce499

Please sign in to comment.