summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-03-11 01:11:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-03-11 01:11:06 +0000
commitf39f307ded336dddb9a4767b1128b82471446412 (patch)
tree1b32019b5547e9706346c48fb34f8dfa062af865 /perl-install/modules.pm
parent39b16a6249eb865a2319a8e3cb1e4270e6fec539 (diff)
downloaddrakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar.gz
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar.bz2
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar.xz
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.zip
no_comment
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 8ed1be0c9..c288168dd 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -338,6 +338,11 @@ sub text2driver($) {
die "$text is not a valid module description";
}
+sub get_alias {
+ my ($alias) = @_;
+ $conf{$alias}{alias};
+}
+
sub add_alias($$) {
my ($alias, $name) = @_;
/\Q$alias/ && $conf{$_}{alias} && $conf{$_}{alias} eq $name and return $_ foreach keys %conf;