[SCM] patch-parser packaging branch, master, updated. 43474b21f016a6c6ceaa1bd528e34a0ab6b65fbb
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Tue Apr 14 07:56:03 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/patch-parser.git;a=commitdiff;h=f8b994b
The following commit has been merged in the master branch:
commit f8b994be54f8bd0be79c180cf6306fe7d5081ec8
Author: Harald Sitter <sitter at kde.org>
Date: Mon Apr 13 17:04:52 2015 +0200
run author through base64 decoding to get the utf-8 string of git exports
---
lib/patch.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/patch.rb b/lib/patch.rb
index b9ff983..ef023b6 100644
--- a/lib/patch.rb
+++ b/lib/patch.rb
@@ -1,4 +1,5 @@
require 'date'
+require 'mail'
require_relative 'dep3'
@@ -43,7 +44,9 @@ class Patch
d.parse!
return unless d.valid?
@dep3 = true
- @author = d.fetch('Author', 'Unknown')
+ # Run author through a mail decoder to get the UTF-8 version of the string
+ # as git exports tend to use base64 versions of !latin1 names.
+ @author = Mail::Encodings.value_decode(d.fetch('Author', 'Unknown'))
@last_update = parse_date(d.fetch('Last-Update', nil))
end
--
patch-parser packaging
More information about the pkg-kde-commits
mailing list