diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 16:54:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 16:54:29 +0000 |
commit | 6cbf9eb0cf3543226d0994fcb0a21b52baec3fe7 (patch) | |
tree | e9a95915e27bc94d8618e7f461dd76eee6a5c57f | |
parent | 21156ff4072ee12403c1f14fadadcf6b8ab3354e (diff) | |
download | urpmi-6cbf9eb0cf3543226d0994fcb0a21b52baec3fe7.tar urpmi-6cbf9eb0cf3543226d0994fcb0a21b52baec3fe7.tar.gz urpmi-6cbf9eb0cf3543226d0994fcb0a21b52baec3fe7.tar.bz2 urpmi-6cbf9eb0cf3543226d0994fcb0a21b52baec3fe7.tar.xz urpmi-6cbf9eb0cf3543226d0994fcb0a21b52baec3fe7.zip |
drop hdlist.cz2 support (obsolete)
-rw-r--r-- | urpm.pm | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -283,7 +283,6 @@ sub probe_medium { } else { unless ($medium->{ignore} || $medium->{hdlist}) { $medium->{hdlist} = "hdlist.$medium->{name}.cz"; - -e "$urpm->{statedir}/$medium->{hdlist}" or $medium->{hdlist} = "hdlist.$medium->{name}.cz2"; -e "$urpm->{statedir}/$medium->{hdlist}" or $medium->{ignore} = 1, $urpm->{error}(N("unable to find hdlist file for \"%s\", medium ignored", $medium->{name})); @@ -1012,7 +1011,7 @@ sub _guess_hdlist_suffix { sub _guess_pubkey_name { my ($medium) = @_; - return $medium->{with_hdlist} =~ /hdlist(.*?)(?:\.src)?\.cz2?$/ ? "pubkey$1" : 'pubkey'; + return $medium->{with_hdlist} =~ /hdlist(.*?)(?:\.src)?\.cz$/ ? "pubkey$1" : 'pubkey'; } sub _update_media__when_not_modified { @@ -1368,7 +1367,7 @@ this could happen if you mounted manually the directory when creating the medium #- examine if a local list file is available (always probed according to with_hdlist) #- and check hdlist wasn't named very strangely... if ($medium->{hdlist} ne 'list') { - my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list'; + my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz$/ ? $1 : 'list'; my $path_list = reduce_pathname("$with_hdlist_dir/../$local_list"); -e $path_list or $path_list = "$dir/list"; if (-e $path_list) { @@ -1681,7 +1680,7 @@ this could happen if you mounted manually the directory when creating the medium #- check whether a list file is available. #- and check hdlist wasn't named very strangely... if ($medium->{hdlist} ne 'list') { - my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list'; + my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz$/ ? $1 : 'list'; foreach (reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../$local_list"), reduce_pathname("$medium->{url}/list"), ) { @@ -2505,7 +2504,7 @@ sub get_source_packages { if (!$listfile && $medium->{virtual}) { my ($dir) = $medium->{url} =~ m!^(?:removable[^:]*:/|file:/)?(/.*)!; my $with_hdlist_dir = reduce_pathname($dir . ($medium->{with_hdlist} ? "/$medium->{with_hdlist}" : "/..")); - my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list'; + my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz$/ ? $1 : 'list'; $listfile = reduce_pathname("$with_hdlist_dir/../$local_list"); -s $listfile or $listfile = "$dir/list"; } |