[SCM] patch-parser packaging branch, master, updated. 43474b21f016a6c6ceaa1bd528e34a0ab6b65fbb
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Tue Apr 14 07:56:00 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/patch-parser.git;a=commitdiff;h=070131f
The following commit has been merged in the master branch:
commit 070131fb3f69b4886d4bcd7fbc9d46707977d035
Author: Harald Sitter <sitter at kde.org>
Date: Mon Apr 13 13:20:38 2015 +0200
raise a parseerror instead of hiding an exeception inside dep3
---
lib/dep3.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/dep3.rb b/lib/dep3.rb
index fd44f15..8a86a31 100644
--- a/lib/dep3.rb
+++ b/lib/dep3.rb
@@ -14,6 +14,8 @@
# it was called Author all along. To transparently map you can use
# {get_alias} which will always give you the correct key name.
class Dep3 < Hash
+ class ParseError < Exception; end
+
# nothing to see here
NONE_STATE = 0
# actively working on a header field, following fields may be folding
@@ -57,8 +59,7 @@ class Dep3 < Hash
begin
break if line.strip == '---'
rescue
- pp "This patch is weird"
- next
+ raise(ParseError, 'Could not find data segment start')
end
header_match = line.match(/^(\S+):(.*)/)
--
patch-parser packaging
More information about the pkg-kde-commits
mailing list