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.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 5ca25a855..e143ee5e1 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -8,7 +8,7 @@ use run_program;
use log;
use list_modules;
-our %conf;
+my %conf;
sub category2modules_and_description {
my ($categories) = @_;
@@ -390,6 +390,14 @@ sub load_raw {
}
}
+sub get_parameters {
+ my %conf;
+ foreach (split(' ', get_options($_[0]))) {
+ /(.*)=(.*)/;
+ $conf{$1} = $2;
+ };
+ %conf;
+}
1;