aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-19 14:53:21 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-19 14:53:21 +0000
commit6f3c876d4081c8447fb2360cd1fee0a27738fbff (patch)
treee0af8d97da6cefc08f16208fb890ef871f7d24a6 /Rpmdrake/open_db.pm
parent958414275995ca59d4245156278c1ad06bc73052 (diff)
downloadrpmdrake-6f3c876d4081c8447fb2360cd1fee0a27738fbff.tar
rpmdrake-6f3c876d4081c8447fb2360cd1fee0a27738fbff.tar.gz
rpmdrake-6f3c876d4081c8447fb2360cd1fee0a27738fbff.tar.bz2
rpmdrake-6f3c876d4081c8447fb2360cd1fee0a27738fbff.tar.xz
rpmdrake-6f3c876d4081c8447fb2360cd1fee0a27738fbff.zip
(get_update_medias) use new is_it_a_devel_distro() in order to update
all media on cooker instead of only update media
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r--Rpmdrake/open_db.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm
index 22f77ba4..2c426a64 100644
--- a/Rpmdrake/open_db.pm
+++ b/Rpmdrake/open_db.pm
@@ -120,7 +120,11 @@ sub get_inactive_backport_media {
sub get_update_medias {
my ($urpm) = @_;
- grep { !$_->{ignore} && $_->{update} } @{$urpm->{media}};
+ if (is_it_a_devel_distro()) {
+ grep { !$_->{ignore} } @{$urpm->{media}};
+ } else {
+ grep { !$_->{ignore} && $_->{update} } @{$urpm->{media}};
+ }
}
sub open_urpmi_db {