diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 14:56:39 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 14:56:39 +0000 |
commit | 15a55bd9f257454bee6d63c230acae750ae379de (patch) | |
tree | d23a29de14697bfe6ec5dc52dfff0cc6da911ba7 /urpm.pm | |
parent | 64495e8b0d16d2d3a091898c35d4ac86d570b049 (diff) | |
download | urpmi-15a55bd9f257454bee6d63c230acae750ae379de.tar urpmi-15a55bd9f257454bee6d63c230acae750ae379de.tar.gz urpmi-15a55bd9f257454bee6d63c230acae750ae379de.tar.bz2 urpmi-15a55bd9f257454bee6d63c230acae750ae379de.tar.xz urpmi-15a55bd9f257454bee6d63c230acae750ae379de.zip |
move basename() to urpm::util
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1224,7 +1224,7 @@ this could happen if you mounted manually the directory when creating the medium #- we can assume at this point a basename is existing, but it needs #- to be checked for being valid, nothing can be deduced if no MD5SUM #- file is present. - my $basename = urpm::download::basename($with_hdlist_dir); + my $basename = basename($with_hdlist_dir); unless ($medium->{virtual}) { if ($medium->{with_hdlist}) { @@ -1475,7 +1475,7 @@ this could happen if you mounted manually the directory when creating the medium #- we can assume at this point a basename is existing, but it needs #- to be checked for being valid, nothing can be deduced if no MD5SUM #- file is present. - $basename = urpm::download::basename($medium->{with_hdlist}); + $basename = basename($medium->{with_hdlist}); unlink "$urpm->{cachedir}/partial/MD5SUM"; eval { @@ -1541,7 +1541,7 @@ this could happen if you mounted manually the directory when creating the medium : _probe_with_try_list(_guess_hdlist_suffix($dir), $options{probe_with}) ); foreach my $with_hdlist (@probe_list) { - $basename = urpm::download::basename($with_hdlist) or next; + $basename = basename($with_hdlist) or next; $options{force} and unlink "$urpm->{cachedir}/partial/$basename"; eval { $urpm->{sync}( @@ -1565,7 +1565,7 @@ this could happen if you mounted manually the directory when creating the medium } } } else { - $basename = urpm::download::basename($medium->{with_hdlist}); + $basename = basename($medium->{with_hdlist}); #- try to sync (copy if needed) local copy after restored the previous one. $options{force} and unlink "$urpm->{cachedir}/partial/$basename"; @@ -3372,7 +3372,7 @@ sub check_sources_signatures { } } - map { ($options{basename} ? urpm::download::basename($_) : $_) . ($options{translate} ? ": $invalid_sources{$_}" : "") } + map { ($options{basename} ? basename($_) : $_) . ($options{translate} ? ": $invalid_sources{$_}" : "") } sort keys %invalid_sources; } |