From 958414275995ca59d4245156278c1ad06bc73052 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 19 Mar 2009 14:49:35 +0000 Subject: (is_it_a_devel_distro) introduce it in order to check whether the distro is 'cooker' or not --- Rpmdrake/open_db.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Rpmdrake/open_db.pm') diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index 565559e1..22f77ba4 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -106,6 +106,13 @@ sub fast_open_urpmi_db() { $urpm; } +sub is_it_a_devel_distro { + state $res; + return $res if defined $res; + $res = common::parse_LDAP_namespace_structure(cat_('/etc/product.id'))->{branch} eq 'Devel'; + return $res; +} + sub get_inactive_backport_media { my ($urpm) = @_; map { $_->{name} } grep { $_->{ignore} && $_->{name} =~ /backport/i && $_->{name} !~ /debug|sources/i } @{$urpm->{media}}; -- cgit v1.2.1