summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/media.pm13
1 files changed, 1 insertions, 12 deletions
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm
index 9dc74a6c2..3cd65aa9c 100644
--- a/perl-install/install/media.pm
+++ b/perl-install/install/media.pm
@@ -58,20 +58,9 @@ sub _phys_media {
uniq(map { $_->{phys_medium} } @{$packages->{media}});
}
-sub _pkg2media {
- my ($media, $p) = @_;
- $p or internal_error("invalid package");
-
- find {
- $_->{selected} &&
- $p->id >= $_->{start} && $p->id <= $_->{end};
- } @$media;
-}
-
sub packageMedium {
my ($packages, $p) = @_;
-
- _pkg2media($packages->{media}, $p) || {};
+ URPM::pkg2media($packages->{media}, $p) || {};
}
sub packagesOfMedium {
my ($packages, $medium) = @_;