diff options
author | Francois Pons <fpons@mandriva.com> | 2001-09-10 14:36:19 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-09-10 14:36:19 +0000 |
commit | 04153f0494afa9d48b37e764f0628776577c6a0e (patch) | |
tree | 9628a66e8e785fdb79b9a2d86ff8184ca7b6d438 /urpm.pm | |
parent | 60004bfe94c36a5750fe2954441914ad1946bc2d (diff) | |
download | urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar.gz urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar.bz2 urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar.xz urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.zip |
moved depslist computation out of loop of hdlist reading.
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -241,7 +241,7 @@ sub probe_medium { } } $medium->{url} ||= $medium->{clear_url}; - $medium->{removable} ||= $medium->{url} =~ /^removable_([^_:]*)(?:_[^:]*)?:/ && "/dev/$1"; + $medium->{removable} ||= $medium->{url} =~ /^removable_([^_:]*)(?:_[^:]*)?:/ && "/dev/$1"; #" $medium; } @@ -311,7 +311,7 @@ sub add_medium { #- add some more flags for this type of medium. $medium->{clear_url} = $url; - $medium->{removable} = $url =~ /^removable_([^_:]*)(?:_[^:]*)?:/ && "/dev/$1"; + $medium->{removable} = $url =~ /^removable_([^_:]*)(?:_[^:]*)?:/ && "/dev/$1"; #" } #- all flags once everything has been computed. @@ -651,9 +651,9 @@ sub update_media { $medium->{ignore} and next; $urpm->{log}(_("reading hdlist file [%s]", "$urpm->{statedir}/$medium->{hdlist}")); $urpm->{params}->read_hdlists("$urpm->{statedir}/$medium->{hdlist}") or next; - $urpm->{log}(_("computing dependencies")); - $urpm->{params}->compute_depslist(); } + $urpm->{log}(_("computing dependencies")); + $urpm->{params}->compute_depslist(); #- once everything has been computed, write back the files to #- sync the urpmi database. |