summaryrefslogtreecommitdiffstats
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
parent7597faa6b5a3e07aaddcd993a9556a2f361109da (diff)
downloadurpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar.gz
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar.bz2
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.tar.xz
urpmi-dc96e9de1be839cf6df1fb67df55a4676cf78adf.zip
*** empty log message ***
-rw-r--r--urpm.pm15
-rw-r--r--urpmi.spec7
2 files changed, 20 insertions, 2 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();
}
}
diff --git a/urpmi.spec b/urpmi.spec
index 174f9ee4..a2e2c2e4 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -2,7 +2,7 @@
Name: urpmi
Version: 1.5
-Release: 8mdk
+Release: 9mdk
License: GPL
Source0: %{name}.tar.bz2
Summary: User mode rpm install
@@ -113,6 +113,11 @@ autoirpm.uninstall
%changelog
+* Mon Feb 26 2001 François Pons <fpons@mandrakesoft.com> 1.5-9mdk
+- fixed big bug of provides files completely read but only
+ files should be extracted with no package description.
+- added log for depslist computation.
+
* Fri Feb 23 2001 François Pons <fpons@mandrakesoft.com> 1.5-8mdk
- fix --auto-select and skip list.