aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 20:39:58 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 20:39:58 +0000
commitf5fef833d523cc0919fae5cc2ddc87371ccf32c9 (patch)
treef75ba77d22da131153e163cf9cb8cd301bba0c6d /Rpmdrake/open_db.pm
parent60bc5a7fc66e3d70cffe19734145ebd22071748b (diff)
downloadrpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar
rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar.gz
rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar.bz2
rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar.xz
rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.zip
Bugfix update version 5.16.6 (bug #40556)distro/mdv2009.1
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 9078459a..d8569940 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
@@ -119,9 +120,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 {