summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm4
1 files changed, 3 insertions, 1 deletions
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);