[maven-archiver] 01/01: Fixed the parsing of DEB_CHANGELOG_DATETIME with non english locales
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Jun 18 19:47:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven-archiver.
commit 6ce5acbb8f54fb37ff45c959b704e56f4ff0b881
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Jun 18 21:34:30 2015 +0200
Fixed the parsing of DEB_CHANGELOG_DATETIME with non english locales
---
debian/changelog | 7 +++++++
.../02-use-changelog-date-as-pom.properties-timestamp.patch | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 50a5e50..7d26424 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+maven-archiver (2.6-3) unstable; urgency=medium
+
+ * Team upload.
+ * Fixed the parsing of DEB_CHANGELOG_DATETIME with non english locales
+
+ -- Emmanuel Bourg <ebourg at apache.org> Thu, 18 Jun 2015 21:21:56 +0200
+
maven-archiver (2.6-2) unstable; urgency=medium
* Team upload.
diff --git a/debian/patches/02-use-changelog-date-as-pom.properties-timestamp.patch b/debian/patches/02-use-changelog-date-as-pom.properties-timestamp.patch
index d3f2cf0..d0b7060 100644
--- a/debian/patches/02-use-changelog-date-as-pom.properties-timestamp.patch
+++ b/debian/patches/02-use-changelog-date-as-pom.properties-timestamp.patch
@@ -95,7 +95,7 @@ Bug-Debian: https://bugs.debian.org/775010
+ }
+
+ try {
-+ return new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz").parse(envVariable);
++ return new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", java.util.Locale.ENGLISH).parse(envVariable);
+ } catch (ParseException e) {
+ throw new IllegalArgumentException("maven-archiver: " + envName + " not in recognised format", e);
+ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-archiver.git
More information about the pkg-java-commits
mailing list