aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-09 14:09:01 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-09 14:09:01 +0000
commitac4d2d5030cae6b95e1aeb574d28b8a69df148e6 (patch)
tree3ca7028829f5a2e619878e17e531fdbdb9e985d9
parent5e4defd1fddc394c7795b4e989d1bf2476378a1f (diff)
downloadrpmdrake-ac4d2d5030cae6b95e1aeb574d28b8a69df148e6.tar
rpmdrake-ac4d2d5030cae6b95e1aeb574d28b8a69df148e6.tar.gz
rpmdrake-ac4d2d5030cae6b95e1aeb574d28b8a69df148e6.tar.bz2
rpmdrake-ac4d2d5030cae6b95e1aeb574d28b8a69df148e6.tar.xz
rpmdrake-ac4d2d5030cae6b95e1aeb574d28b8a69df148e6.zip
(warn_about_media) use new proper API to select media, thus fixing not
updating media (side effect of urpmi-6.14.12 API changes, #47209)
-rw-r--r--NEWS3
-rw-r--r--Rpmdrake/pkg.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d3b48cac..454bbaa1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
- edit-urpm-sources:
o fix displayling big list of media to remove (#46773)
+- MandrivaUpdate:
+ o use new proper API to select media, thus fixing not updating media
+ (side effect of urpmi API changes, #47209)
Version 5.0.4 - 9 December 2008, Thierry Vignaud
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index be2ed7fb..80e104ec 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -236,7 +236,7 @@ Is it ok to continue?"), yesno => 1,
)) or myexit(-1);
writeconf();
urpm::media::select_media($urpm, map { $_->{name} } @update_medias);
- update_sources($urpm, noclean => 1);
+ update_sources($urpm, noclean => 1, medialist => [ map { $_->{name} } @update_medias ]);
}
} else {
if (any { $_->{update} } @{$urpm->{media}}) {