summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-09 14:54:31 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-09 14:54:31 +0000
commit8026ff19e24847787bbfc5f876dc6a53e044a993 (patch)
tree299d7114b55be525fdad127fd9848258a696faaf /urpm.pm
parent4b7eeb93d1210c0b241c74d87106a7c50dadd1d9 (diff)
downloadurpmi-8026ff19e24847787bbfc5f876dc6a53e044a993.tar
urpmi-8026ff19e24847787bbfc5f876dc6a53e044a993.tar.gz
urpmi-8026ff19e24847787bbfc5f876dc6a53e044a993.tar.bz2
urpmi-8026ff19e24847787bbfc5f876dc6a53e044a993.tar.xz
urpmi-8026ff19e24847787bbfc5f876dc6a53e044a993.zip
(get_updates_description) fix reading descriptions with --env=
(needed for rpmdrake)
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index c2504bec..c06f24f4 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -412,7 +412,8 @@ sub get_updates_description {
foreach my $medium (@update_medias) {
# fix not taking into account the last %package token of each descrptions file: '%package dummy'
- foreach (cat_utf8(urpm::media::statedir_descriptions($urpm, $medium)), '%package dummy') {
+ foreach (cat_utf8(urpm::media::statedir_descriptions($urpm, $medium)),
+ ($::env ? cat_utf8("$::env/descriptions") : ()), '%package dummy') {
/^%package +(.+)/ and do {
# fixes not parsing descriptions file when MU adds itself the security source:
if (exists $cur->{importance} && !member($cur->{importance}, qw(security bugfix))) {