summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm14
1 files changed, 8 insertions, 6 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index ecbbd26c9..edf7fbcb3 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -41,12 +41,14 @@ my %ignoreBadPkg = (
'rt2-demo' => 1,
);
-sub packageMedium { my ($packages, $p) = @_; $p or die "invalid package from\n" . backtrace();
- foreach (values %{$packages->{mediums}}) {
- defined $_->{start} && defined $_->{end} or next;
- $p->id >= $_->{start} && $p->id <= $_->{end} and return $_;
- }
- return }
+sub packageMedium {
+ my ($packages, $p) = @_; $p or die "invalid package from\n" . backtrace();
+ foreach (values %{$packages->{mediums}}) {
+ defined $_->{start} && defined $_->{end} or next;
+ $p->id >= $_->{start} && $p->id <= $_->{end} and return $_;
+ }
+ return {};
+}
sub cleanHeaders {
my ($prefix) = @_;