[Pkg-sympa-commits] [sympa] 16/30: Remove old unused patch about supported locales
Emmanuel Bouthenot
kolter at moszumanska.debian.org
Mon Sep 19 20:08:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
kolter pushed a commit to branch master
in repository sympa.
commit 5393b29b251e28f4dc4db70c07af3bb164c22b8f
Author: Emmanuel Bouthenot <kolter at openics.org>
Date: Mon Sep 19 21:44:56 2016 +0200
Remove old unused patch about supported locales
---
..._wizard_probe_currently_supported_locales.patch | 61 ----------------------
debian/patches/series | 1 -
2 files changed, 62 deletions(-)
diff --git a/debian/patches/1007_wizard_probe_currently_supported_locales.patch b/debian/patches/1007_wizard_probe_currently_supported_locales.patch
deleted file mode 100644
index f4501ba..0000000
--- a/debian/patches/1007_wizard_probe_currently_supported_locales.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-Description: probe currently supported locales in sympa_wizard.pl
-Author: Stefan Hornburg (Racke) <racke at linuxia.de>
-Last-Update: 2010-01-19
---- a/src/sympa_wizard.pl.in
-+++ b/src/sympa_wizard.pl.in
-@@ -143,6 +143,8 @@
- #EOF
- }
-
-+ fix_supported_languages(@confdef::params);
-+
- foreach my $param (@confdef::params) {
-
- if ($param->{'title'}) {
-@@ -781,3 +783,46 @@
- $ENV{'LANG'} = $lang if (defined $lang);
-
- }
-+
-+##-------------------------------------------------------------------------------
-+# Filter supported languages according to the languages actually supported by the
-+# system (Debian leaves you the choice which locales to the install)
-+##-------------------------------------------------------------------------------
-+
-+sub fix_supported_languages {
-+ my @params = @_;
-+ my ($possible_langs, $locale_ret, %available_locales, @supported_langs);
-+
-+ foreach my $param (@params) {
-+ if ($param->{name} eq 'supported_lang') {
-+ $possible_langs = $param->{default};
-+ $locale_ret = `locale -a`;
-+
-+ if ($@) {
-+ die "$0: error in locale command: $@\n";
-+ }
-+
-+ for (split(/\s+/, $locale_ret)) {
-+ # skip standard languages
-+ next if $_ eq 'C' || $_ eq 'POSIX';
-+ # keep language part only
-+ s/\..*//;
-+
-+ $available_locales{$_} = 1;
-+ }
-+
-+ for (split(/,/, $possible_langs)) {
-+ my $l = $_;
-+
-+ unless (/_/) {
-+ $_ = "${_}_" . uc($_);
-+ }
-+
-+ if ($available_locales{$_}) {
-+ push(@supported_langs, $l);
-+ }
-+ }
-+ $param->{default} = join(',', @supported_langs);
-+ }
-+ }
-+}
diff --git a/debian/patches/series b/debian/patches/series
index 2568978..2734a21 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
-1007_wizard_probe_currently_supported_locales.patch
2001_ca_bundle_check_as_warning.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sympa.git
More information about the Pkg-sympa-commits
mailing list