aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--Rpmdrake/open_db.pm4
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b31ec549..e3d4b9a9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
- rpmdrake:
+ o consider chrooted /etc/produc.id when detecting whether installed
+ distro is stable or cooker
o fix not displaying importance and reasons of updates (#51118)
(regression introduced by #50276 fix in 5.16.2)
o update GUI package list
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;
}