summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-20 12:23:09 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-20 12:23:09 +0000
commit16d86177611bd43b282ea24d8aa0a03979eab1bc (patch)
tree157bdebbc9f8707cf25e8f550ddc0ae2a61a23f5 /urpm.pm
parent04ff5e5777ec0e6e211b83424f7cf65d8216c27a (diff)
downloadurpmi-16d86177611bd43b282ea24d8aa0a03979eab1bc.tar
urpmi-16d86177611bd43b282ea24d8aa0a03979eab1bc.tar.gz
urpmi-16d86177611bd43b282ea24d8aa0a03979eab1bc.tar.bz2
urpmi-16d86177611bd43b282ea24d8aa0a03979eab1bc.tar.xz
urpmi-16d86177611bd43b282ea24d8aa0a03979eab1bc.zip
changed list and pubkey default behaviour for finding files.
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm12
1 files changed, 4 insertions, 8 deletions
diff --git a/urpm.pm b/urpm.pm
index 8e360c33..d891980f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1389,8 +1389,7 @@ this could happen if you mounted manually the directory when creating the medium
if ($medium->{hdlist} ne 'list') {
my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : '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 or $path_list = "$dir/list";
-s $path_list and system("cp", "--preserve=mode", "--preserve=timestamps", "-R",
$path_list, "$urpm->{cachedir}/partial/list");
}
@@ -1438,8 +1437,7 @@ this could happen if you mounted manually the directory when creating the medium
if (!$options{nopubkey} && $medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
my $local_pubkey = $medium->{with_hdlist} =~ /hdlist(.*)\.cz2?$/ ? "pubkey$1" : '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 or $path_pubkey = "$dir/pubkey";
-s $path_pubkey and system("cp", "--preserve=mode", "--preserve=timestamps", "-R",
$path_pubkey, "$urpm->{cachedir}/partial/pubkey");
}
@@ -1652,8 +1650,7 @@ this could happen if you mounted manually the directory when creating the medium
if ($medium->{hdlist} ne 'list') {
my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list';
foreach (reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../$local_list"),
- reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../list"),
- reduce_pathname("$medium->{url}/$local_list"),
+ reduce_pathname("$medium->{url}/list"),
) {
eval {
$urpm->{sync}({ dir => "$urpm->{cachedir}/partial",
@@ -1673,8 +1670,7 @@ this could happen if you mounted manually the directory when creating the medium
if (!$options{nopubkey} && $medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
my $local_pubkey = $medium->{with_hdlist} =~ /hdlist(.*)\.cz2?$/ ? "pubkey$1" : 'pubkey';
foreach (reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../$local_pubkey"),
- reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../pubkey"),
- reduce_pathname("$medium->{url}/$local_pubkey"),
+ reduce_pathname("$medium->{url}/pubkey"),
) {
eval {
$urpm->{sync}({ dir => "$urpm->{cachedir}/partial",