diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-12-08 15:15:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-12-08 15:15:56 +0000 |
commit | caf582ad5764362b3d349550d6a0c0162dfe05f9 (patch) | |
tree | 1408a4fbb85f98611a0d507c8c92e9d4b83e1e3f /perl-install | |
parent | eeddd27e53b9865502f683bb9a6679962a8a7817 (diff) | |
download | drakx-caf582ad5764362b3d349550d6a0c0162dfe05f9.tar drakx-caf582ad5764362b3d349550d6a0c0162dfe05f9.tar.gz drakx-caf582ad5764362b3d349550d6a0c0162dfe05f9.tar.bz2 drakx-caf582ad5764362b3d349550d6a0c0162dfe05f9.tar.xz drakx-caf582ad5764362b3d349550d6a0c0162dfe05f9.zip |
(remove_alias_regexp_byname) introduce it; works the same as
remove_alias_regexp but matches alias name instead of value
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/modules.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index f03fdf710..37efa5aca 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -176,9 +176,16 @@ sub remove_alias($) { } sub remove_alias_regexp($) { + my ($aliased) = @_; + foreach (keys %conf) { + delete $conf{$_}{alias} if /$aliased/; + } +} + +sub remove_alias_regexp_byname($) { my ($name) = @_; foreach (keys %conf) { - delete $conf{$_}{alias} if /$name/; + delete $conf{$_} if /$name/; } } |