diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-14 18:59:27 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-14 18:59:27 +0000 |
commit | a6780433c4d961aaba52683c5d392bd56e327e2a (patch) | |
tree | 504d5a96e5a3312fda73ba2fe1a705ede0c36814 | |
parent | 29272538450b3211f3bc78ad6916d12cd3232738 (diff) | |
download | drakx-net-a6780433c4d961aaba52683c5d392bd56e327e2a.tar drakx-net-a6780433c4d961aaba52683c5d392bd56e327e2a.tar.gz drakx-net-a6780433c4d961aaba52683c5d392bd56e327e2a.tar.bz2 drakx-net-a6780433c4d961aaba52683c5d392bd56e327e2a.tar.xz drakx-net-a6780433c4d961aaba52683c5d392bd56e327e2a.zip |
load settings before setting up connection (to preserve potentially existing settings)
-rw-r--r-- | lib/network/connection_manager.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index ca7bd17..4d4b12a 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -54,6 +54,8 @@ sub check_setup { sub setup_connection { my ($cmanager) = @_; + $cmanager->load_settings; + my @packages = $cmanager->{connection}->can('get_packages') ? $cmanager->{connection}->get_packages : (); if (@packages && !$cmanager->{in}->do_pkgs->install(@packages)) { $cmanager->{in}->ask_warn(N("Error"), N("Could not install the packages (%s)!", join(', ', @packages))); |