From 85d0fcbe247e2c83af5d1d0b8d266514df7970c9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 6 Nov 2003 16:30:25 +0000 Subject: (write_conf) do not discard remove_alias changes ... (why nobody never saw it in years :-() --- perl-install/modules.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index e2e4da418..e78b3d8d4 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -261,7 +261,9 @@ sub write_conf { } elsif ($conf{$alias}{$type} && $conf{$alias}{$type} ne $module) { my $v = join(' ', uniq(deref($conf{$alias}{$type}))); $_ = "$type $alias $v\n"; - } + } elsif ($type eq 'alias' && !defined $conf{$alias}{alias}) { + undef $_; + } } $file; my $written = read_conf($file); -- cgit v1.2.1