diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-12-13 15:30:48 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-12-13 15:30:48 +0000 |
commit | b11d096f6ab9250d6b37c29eaad66a83fc8e03a1 (patch) | |
tree | 0dadcff58dd93d1c749d4cd92c1bcb2a5238109a /perl-install/pkgs.pm | |
parent | 448e1389b6a0e34cfd4752b1b65194fd05d514f1 (diff) | |
download | drakx-b11d096f6ab9250d6b37c29eaad66a83fc8e03a1.tar drakx-b11d096f6ab9250d6b37c29eaad66a83fc8e03a1.tar.gz drakx-b11d096f6ab9250d6b37c29eaad66a83fc8e03a1.tar.bz2 drakx-b11d096f6ab9250d6b37c29eaad66a83fc8e03a1.tar.xz drakx-b11d096f6ab9250d6b37c29eaad66a83fc8e03a1.zip |
package lsb is requiring many locales though we don't want it to be installed
only if those many locales are chosen. So discarding those locales requires
(bugzilla #20183)
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r-- | perl-install/pkgs.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 442fef990..b1dd4519a 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -626,8 +626,15 @@ sub read_rpmsrate { foreach (keys %$flags) { my $p = packageByName($packages, $_) or next; - my @flags = (@{$flags->{$_}}, map { if_(/locales-(.*)/, qq(LOCALES"$1")) } $p->requires_nosense); - + my @flags = @{$flags->{$_}}; + if (my @l = map { if_(/locales-(.*)/, qq(LOCALES"$1")) } $p->requires_nosense) { + if (@l > 1) { + log::l("ERROR: package $_ is requiring many locales") if $_ ne 'lsb'; + } else { + push @flags, @l; + } + } + @flags = map { my ($user_flags, $known_flags) = partition { /^!?CAT_/ } split('\|\|', $_); my $ok = find { |