From 87ccf7438dc42b7f611ecabfaf36ddfe29e345da Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 3 Mar 2008 22:43:54 +0000 Subject: correctly name function since it's outside of its module --- urpm/cdrom.pm | 2 +- urpm/removable.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'urpm') diff --git a/urpm/cdrom.pm b/urpm/cdrom.pm index 117a12d4..a2b2e7c8 100644 --- a/urpm/cdrom.pm +++ b/urpm/cdrom.pm @@ -21,7 +21,7 @@ sub _find_blist_url_matching { # set it, then verify $blist->{medium}{mntpoint} = $mntpoint; - if (-r urpm::removable::_file_or_synthesis_dir($blist->{medium}, $blist->{url})) { + if (-r urpm::removable::file_or_synthesis_dir($blist->{medium}, $blist->{url})) { $urpm->{log}("found cdrom $blist->{medium}{name} mounted in $mntpoint"); push @l, $blist; } else { diff --git a/urpm/removable.pm b/urpm/removable.pm index 93bc4270..ecc774e5 100644 --- a/urpm/removable.pm +++ b/urpm/removable.pm @@ -9,7 +9,7 @@ use urpm 'file_from_local_medium'; -sub _file_or_synthesis_dir { +sub file_or_synthesis_dir { my ($medium, $o_url) = @_; urpm::media::_valid_synthesis_dir($medium) && !$o_url ? @@ -47,7 +47,7 @@ sub _try_mounting_medium { sub _try_mounting_local { my ($urpm, $medium, $o_url) = @_; - my $dir = _file_or_synthesis_dir($medium, $o_url); + my $dir = file_or_synthesis_dir($medium, $o_url); -e $dir and return 1; $medium->{iso} ? _try_mounting_iso($urpm, $dir, $medium->{iso}) : _try_mounting_using_fstab($urpm, $dir); -- cgit v1.2.1