aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 16:08:42 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 16:08:42 +0000
commit1a933c854c9f5357e4898f5c5e56095aea0eb88a (patch)
treefc7454ad96a9ab9428025adfa654e404efe1655e /Rpmdrake/open_db.pm
parent9a32f85aaef279ce534a9e5e63e12c50bfaeac3c (diff)
downloadrpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar.gz
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar.bz2
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar.xz
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.zip
Fixes the inactive backports listing (#40556)
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 {