diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-19 14:49:35 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-19 14:49:35 +0000 |
commit | 958414275995ca59d4245156278c1ad06bc73052 (patch) | |
tree | 42702856bd506fbb782192546e9c9d9f0349b92e /Rpmdrake | |
parent | d7a685b9fa14f29a18671e980565d61b5267c74d (diff) | |
download | rpmdrake-958414275995ca59d4245156278c1ad06bc73052.tar rpmdrake-958414275995ca59d4245156278c1ad06bc73052.tar.gz rpmdrake-958414275995ca59d4245156278c1ad06bc73052.tar.bz2 rpmdrake-958414275995ca59d4245156278c1ad06bc73052.tar.xz rpmdrake-958414275995ca59d4245156278c1ad06bc73052.zip |
(is_it_a_devel_distro) introduce it in order to check whether the
distro is 'cooker' or not
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/open_db.pm | 7 |
1 files changed, 7 insertions, 0 deletions
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}}; |