diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-06-13 13:57:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-06-13 13:57:14 +0000 |
commit | ac76267ab7cfad8d04821b26c2dff288f85e7103 (patch) | |
tree | e02ad95144ac8e155ab622d347c2f6fe6c57de53 | |
parent | 27b1131d2ec55f6680e0b381e625944193fe571c (diff) | |
download | rpmdrake-ac76267ab7cfad8d04821b26c2dff288f85e7103.tar rpmdrake-ac76267ab7cfad8d04821b26c2dff288f85e7103.tar.gz rpmdrake-ac76267ab7cfad8d04821b26c2dff288f85e7103.tar.bz2 rpmdrake-ac76267ab7cfad8d04821b26c2dff288f85e7103.tar.xz rpmdrake-ac76267ab7cfad8d04821b26c2dff288f85e7103.zip |
(warn_about_media) use our own instance of urpmi db in order not to
alter skip.list managment (#31092)
-rwxr-xr-x | Rpmdrake/pkg.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 9f215d60..4f6d5450 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -174,7 +174,9 @@ sub formatlistpkg { join("\n", sort { uc($a) cmp uc($b) } @_) } my (@update_medias, $is_update_media_already_asked); sub warn_about_media { - my ($urpm, $w, $opts) = @_; + my ($w, $opts) = @_; + my $urpm = open_urpmi_db(); + my $update_name = 'update_source'; return if !member($::default_list_mode, qw(all_updates security bugfix normal)); return if $::options{'no-media-update'}; @@ -253,7 +255,7 @@ sub get_pkgs { my $statedir = $urpm->{statedir}; @update_medias = grep { !$_->{ignore} && $_->{update} } @{$urpm->{media}}; - warn_about_media($urpm, $w, $opts); + warn_about_media($w, $opts); Rpmdrake::gurpm::label(N("Reading updates description")); Rpmdrake::gurpm::progress(0.05); |