[xmds2] 01/01: debian/patches/show-library-name.patch: New patch

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Thu Sep 18 09:30:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository xmds2.

commit 5ae10c1de2f19080e3c786d2bf4b64fa834618c2
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Thu Sep 18 06:29:59 2014 -0300

    debian/patches/show-library-name.patch: New patch
---
 debian/patches/series                  |  1 +
 debian/patches/show-library-name.patch | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index f3b6e39..b219596 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 revision-number-as-deb-pkg.patch
 parse-dep-relationship.patch
 remove-non-dfsg-code.patch
+show-library-name.patch
diff --git a/debian/patches/show-library-name.patch b/debian/patches/show-library-name.patch
new file mode 100644
index 0000000..63de800
--- /dev/null
+++ b/debian/patches/show-library-name.patch
@@ -0,0 +1,16 @@
+Description: Make error message on lacking Python library more informative
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Forwarded: http://sourceforge.net/p/xmds/mailman/message/32844043/
+Last-Update: 2014-09-18
+
+--- xmds2-2.2.0+dfsg1.orig/xpdeint/ParserException.py
++++ xmds2-2.2.0+dfsg1/xpdeint/ParserException.py
+@@ -34,7 +34,7 @@ def indentMessageWithPrefix(prefix, msg)
+     return '\n'.join(result)
+ 
+ def error_missing_python_library(library_name, xmlElement = None):
+-  raise ParserException(xmlElement, "This script requires the python package '%s' which is not installed.  Please install it to run this script.")
++  raise ParserException(xmlElement, "This script requires the python package '%s' which is not installed.  Please install it to run this script." % library_name)
+ 
+ class ParserException(Exception):
+     def __init__(self, element, msg):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xmds2.git



More information about the debian-science-commits mailing list