From f1ea1e02c574417eb642dd2ab1e838a3c5260632 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 1 Jun 2009 14:33:44 +0000 Subject: (is_it_a_devel_distro) consider chrooted /etc/produc.id when detecting whether installed distro is stable or cooker --- Rpmdrake/open_db.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Rpmdrake/open_db.pm') 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; } -- cgit v1.2.1