aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2013-01-04 03:05:02 -0600
committerJ Pipkin <j@dawnrazor.net>2013-01-04 03:05:02 -0600
commit3dfa9294421bcf117265692294c0c72c41711ac4 (patch)
tree74894a592eb60b1b6e73e1413d0bbd86b037241a /SBO-Lib/lib/SBO/Lib.pm
parent20a24ed881dd1f255c06db5cbc84308dde4c6fab (diff)
downloadsbotools2-3dfa9294421bcf117265692294c0c72c41711ac4.tar.xz
stop pulling version, integrate into sboupgrade
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm15
1 files changed, 9 insertions, 6 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index b41fde2..821daa3 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -42,6 +42,7 @@ our @EXPORT = qw(
get_arch
get_build_queue
merge_queues
+ get_installed_cpans
$tempdir
$conf_dir
$conf_file
@@ -860,17 +861,19 @@ sub get_installed_cpans() {
my @contents;
for my $file (@locals) {
my $fh = open_read $file;
- push @contents, grep {/Module|VERSION/} <$fh>;
+# push @contents, grep {/Module|VERSION/} <$fh>;
+ push @contents, grep {/Module/} <$fh>;
close $fh;
}
my $mod_regex = qr/C<Module>\s+L<([^\|]+)/;
- my $ver_regex = qr/C<VERSION:\s+([^>]+)>/;
+# my $ver_regex = qr/C<VERSION:\s+([^>]+)>/;
my (@mods, @vers);
for my $line (@contents) {
push @mods, ($line =~ $mod_regex)[0];
- push @vers, ($line =~ $ver_regex)[0];
+# push @vers, ($line =~ $ver_regex)[0];
}
- my %cpans;
- $cpans{$mods}[$_] = $vers[$_] for keys @mods;
- return \%cpans;
+ return \@mods;
+# my %cpans;
+# $cpans{$mods[$_]} = $vers[$_] for keys @mods;
+# return \%cpans;
}