diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/network/isdn.pm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/perl-install/network/isdn.pm b/perl-install/network/isdn.pm index 69b7c7a3d..00a001cf2 100644 --- a/perl-install/network/isdn.pm +++ b/perl-install/network/isdn.pm @@ -51,9 +51,13 @@ We recommand the light configuration. "), [ __("New configuration (isdn-light)"), __("Old configuration (isdn4net)")] ) or return; - #FIXME debug only - #system('urpmi --auto --best-output ' . join(' ', $e =~ /light/ ? 'isdn-light' : 'isdn4net', 'isdn4k-utils')); - $install->($e =~ /light/ ? 'isdn-light' : 'isdn4net', 'isdn4k-utils'); + my ($rmpackage, $instpackage) = $e =~ /light/ ? ('isdn4net', 'isdn-light') : ('isdn4net', 'isdn-light'); + if (!$::isStandalone) { + my $p = packageByName($in->{packages}, $rmpackage); + $p && packageFlagSelected($p) and pkgs::unselectPackage($in->{packages}, $p); + } + run_program::rooted($prefix, "rpm", "-e", "$rmpackage"); + $install->($instpackage, 'isdn4k-utils'); isdn_write_config_backend($isdn, $e =~ /light/, $netc); 1; } |