summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-02-26 15:06:21 +0000
committerFrancois Pons <fpons@mandriva.com>2001-02-26 15:06:21 +0000
commitdc96e9de1be839cf6df1fb67df55a4676cf78adf (patch)
tree6b9664642ef51376b11c3d9f81941b77efeb9567 /urpm.pm
parent7597faa6b5a3e07aaddcd993a9556a2f361109da (diff)
downloadurpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar.gz
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar.bz2
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar.xz
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.zip
*** empty log message ***
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm15
1 files changed, 14 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index c4c483c9..a8be6eb6 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -553,30 +553,43 @@ sub update_media {
#- if a provides exists, try to use it to speed up process
#- but this is not mandatory here.
- -r $urpm->{provides} and $urpm->read_provides();
+ if (-r $urpm->{provides}) {
+ local *F;
+ open F, $urpm->{provides} or $urpm->{error}("unable to read provides file [$urpm->{provides}]"), return;
+ $urpm->{params}->read_provides_files(\*F);
+ close F;
+ $urpm->{log}("read (only files) provides file [$urpm->{provides}]");
+ }
#- compute depslist after reading each hdlist of medium
#- in the right order.
foreach my $medium (@{$urpm->{media}}) {
$medium->{ignore} and next;
+ $urpm->{log}("reading hdlist file [$urpm->{statedir}/$medium->{hdlist}]");
$urpm->{params}->read_hdlists("$urpm->{statedir}/$medium->{hdlist}");
+ $urpm->{log}("computing dependancy");
$urpm->{params}->compute_depslist();
}
#- there has been a problem with provides not resolved on files, there
#- must be at least 2 linked pass on the whole process.
if ($urpm->{params}->get_unresolved_provides_files() > 0) {
+ $urpm->{log}("found unresolved provides on files, cleaning and recomputing dependancy");
#- cleaning.
$urpm->{params}->clean();
foreach my $medium (@{$urpm->{media}}) {
$medium->{ignore} and next;
+ $urpm->{log}("reading hdlist file [$urpm->{statedir}/$medium->{hdlist}]");
$urpm->{params}->read_hdlists("$urpm->{statedir}/$medium->{hdlist}");
}
+ $urpm->{log}("keeping only provides files");
$urpm->{params}->keep_only_cleaned_provides_files();
foreach my $medium (@{$urpm->{media}}) {
$medium->{ignore} and next;
+ $urpm->{log}("reading hdlist file [$urpm->{statedir}/$medium->{hdlist}]");
$urpm->{params}->read_hdlists("$urpm->{statedir}/$medium->{hdlist}");
+ $urpm->{log}("computing dependancy");
$urpm->{params}->compute_depslist();
}
}