diff options
author | Francois Pons <fpons@mandriva.com> | 2003-08-19 11:41:33 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-08-19 11:41:33 +0000 |
commit | 24c81692d0fd2a3daabe84ad81532dd536869de4 (patch) | |
tree | 371d18799a5d75f8d56aa49442f7cf0ae0d09e24 /urpm.pm | |
parent | a1f4c7d3642be0fc3421840584597c94ba438212 (diff) | |
download | urpmi-24c81692d0fd2a3daabe84ad81532dd536869de4.tar urpmi-24c81692d0fd2a3daabe84ad81532dd536869de4.tar.gz urpmi-24c81692d0fd2a3daabe84ad81532dd536869de4.tar.bz2 urpmi-24c81692d0fd2a3daabe84ad81532dd536869de4.tar.xz urpmi-24c81692d0fd2a3daabe84ad81532dd536869de4.zip |
fixed parse_pubkeys usage.
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1254,7 +1254,7 @@ this could happen if you mounted manually the directory when creating the medium #- file are present. my ($basename) = $with_hdlist_dir =~ /\/([^\/]+)$/; - if (!$options{nomd5sum} && -s reduce_pathname("$dir/$with_hdlist_dir/../MD5SUM") > 32) { + if (!$options{nomd5sum} && -s reduce_pathname("$with_hdlist_dir/../MD5SUM") > 32) { if ($options{force}) { #- force downloading the file again, else why a force option has been defined ? delete $medium->{md5sum}; @@ -1273,7 +1273,7 @@ this could happen if you mounted manually the directory when creating the medium if ($medium->{md5sum}) { $urpm->{log}(N("examining MD5SUM file")); local (*F, $_); - open F, reduce_pathname("$dir/$with_hdlist_dir/../MD5SUM"); + open F, reduce_pathname("$with_hdlist_dir/../MD5SUM"); while (<F>) { my ($md5sum, $file) = /(\S+)\s+(?:\.\/)?(\S+)/ or next; #- keep md5sum got here to check download was ok ! so even if md5sum is not defined, we need @@ -1388,8 +1388,8 @@ this could happen if you mounted manually the directory when creating the medium #- and check hdlist has not be named very strangely... if ($medium->{hdlist} ne 'list') { my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list'; - my $path_list = reduce_pathname("$dir/$with_hdlist_dir/../$local_list"); - -s $path_list or $path_list = reduce_pathname("$dir/$with_hdlist_dir/../list"); + my $path_list = reduce_pathname("$with_hdlist_dir/../$local_list"); + -s $path_list or $path_list = reduce_pathname("$with_hdlist_dir/../list"); -s $path_list or $path_list = "$dir/$local_list"; -s $path_list and system("cp", "--preserve=mode", "--preserve=timestamps", "-R", $path_list, "$urpm->{cachedir}/partial/list"); @@ -1437,8 +1437,8 @@ this could happen if you mounted manually the directory when creating the medium #- examine if a local pubkey file is available. if ($medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) { my $local_pubkey = $medium->{with_hdlist} =~ /hdlist(.*)\.cz2?$/ ? "pubkey$1" : 'pubkey'; - my $path_pubkey = reduce_pathname("$dir/$with_hdlist_dir/../$local_pubkey"); - -s $path_pubkey or $path_pubkey = reduce_pathname("$dir/$with_hdlist_dir/../pubkey"); + my $path_pubkey = reduce_pathname("$with_hdlist_dir/../$local_pubkey"); + -s $path_pubkey or $path_pubkey = reduce_pathname("$with_hdlist_dir/../pubkey"); -s $path_pubkey or $path_pubkey = "$dir/$local_pubkey"; -s $path_pubkey and system("cp", "--preserve=mode", "--preserve=timestamps", "-R", $path_pubkey, "$urpm->{cachedir}/partial/pubkey"); @@ -2080,6 +2080,7 @@ sub find_mntpoints { sub reduce_pathname { my ($url) = @_; + #- clean url to remove any macro (which cannot be solved now). #- take care if this is a true url and not a simple pathname. my ($host, $dir) = $url =~ /([^:\/]*:\/\/[^\/]*\/)?(.*)/; |