diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-06-01 14:33:44 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-06-01 14:33:44 +0000 |
commit | f1ea1e02c574417eb642dd2ab1e838a3c5260632 (patch) | |
tree | 6720356dbc3113b01ca0ccc69b155d80eefd50ca /Rpmdrake/open_db.pm | |
parent | 69d00b3b71d53cc849799e701d77d267bfba5aab (diff) | |
download | rpmdrake-f1ea1e02c574417eb642dd2ab1e838a3c5260632.tar rpmdrake-f1ea1e02c574417eb642dd2ab1e838a3c5260632.tar.gz rpmdrake-f1ea1e02c574417eb642dd2ab1e838a3c5260632.tar.bz2 rpmdrake-f1ea1e02c574417eb642dd2ab1e838a3c5260632.tar.xz rpmdrake-f1ea1e02c574417eb642dd2ab1e838a3c5260632.zip |
(is_it_a_devel_distro) consider chrooted /etc/produc.id when detecting
whether installed distro is stable or cooker
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r-- | Rpmdrake/open_db.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index 9078459a..9016b899 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -115,7 +115,9 @@ sub fast_open_urpmi_db() { 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'; + + my $path = $::rpmdrake_options{'urpmi-root'}[0] . '/etc/product.id'; + $res = common::parse_LDAP_namespace_structure(cat_($path))->{branch} eq 'Devel'; return $res; } |