aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 19:31:02 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 19:31:02 +0000
commitd1fb1307958857890ec547e01bfc66ea6c72de04 (patch)
treeab09e9b401c2a436858c02151f534fdb7042d9e8 /Rpmdrake/open_db.pm
parent7c77c389766f221d8e376375e448b38da121524e (diff)
downloadrpmdrake-d1fb1307958857890ec547e01bfc66ea6c72de04.tar
rpmdrake-d1fb1307958857890ec547e01bfc66ea6c72de04.tar.gz
rpmdrake-d1fb1307958857890ec547e01bfc66ea6c72de04.tar.bz2
rpmdrake-d1fb1307958857890ec547e01bfc66ea6c72de04.tar.xz
rpmdrake-d1fb1307958857890ec547e01bfc66ea6c72de04.zip
Bugfix update version 5.23.1 (bug #40556)distro/mdv2010.0
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r--Rpmdrake/open_db.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm
index 315d06c4..888d0ffa 100644
--- a/Rpmdrake/open_db.pm
+++ b/Rpmdrake/open_db.pm
@@ -34,6 +34,7 @@ use feature 'state';
use Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(fast_open_urpmi_db
+ get_backport_media
get_inactive_backport_media
get_update_medias
is_it_a_devel_distro
@@ -122,9 +123,15 @@ sub is_it_a_devel_distro {
return $res;
}
+sub get_backport_media {
+ my ($urpm) = @_;
+ grep { $_->{name} =~ /backport/i &&
+ $_->{name} !~ /debug|sources/i } @{$urpm->{media}};
+}
+
sub get_inactive_backport_media {
my ($urpm) = @_;
- map { $_->{name} } grep { $_->{ignore} && $_->{name} =~ /backport/i && $_->{name} !~ /debug|sources/i } @{$urpm->{media}};
+ map { $_->{name} } grep { $_->{ignore} } get_backport_media($urpm);
}
sub get_update_medias {