diff -Nru openbabel-2.4.1+dfsg/debian/changelog openbabel-2.4.1+dfsg/debian/changelog --- openbabel-2.4.1+dfsg/debian/changelog 2018-11-03 00:14:35.000000000 +0000 +++ openbabel-2.4.1+dfsg/debian/changelog 2018-11-12 12:24:14.000000000 +0000 @@ -1,8 +1,10 @@ -openbabel (2.4.1+dfsg-2build1) disco; urgency=medium +openbabel (2.4.1+dfsg-3) unstable; urgency=medium - * No-change rebuild for the perl 5.28 transition. + [ Michael Banck ] + * debian/patches/pybel_indexerror.patch: New patch, avoids an IndexError for + plugins with empty names, taken from upstream master commit 4c3fe03b. - -- Adam Conrad Fri, 02 Nov 2018 18:14:35 -0600 + -- Michael Banck Mon, 12 Nov 2018 13:24:14 +0100 openbabel (2.4.1+dfsg-2) unstable; urgency=medium diff -Nru openbabel-2.4.1+dfsg/debian/patches/pybel_indexerror.patch openbabel-2.4.1+dfsg/debian/patches/pybel_indexerror.patch --- openbabel-2.4.1+dfsg/debian/patches/pybel_indexerror.patch 1970-01-01 00:00:00.000000000 +0000 +++ openbabel-2.4.1+dfsg/debian/patches/pybel_indexerror.patch 2018-11-12 12:20:20.000000000 +0000 @@ -0,0 +1,22 @@ +From 4c3fe03b571d4740957ec4115992be75019ddc76 Mon Sep 17 00:00:00 2001 +From: "Karol M. Langner" +Date: Sat, 10 Dec 2016 22:03:43 -0800 +Subject: [PATCH] Avoid IndexError for plugins with empty names + +--- + scripts/python/pybel.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/python/pybel.py b/scripts/python/pybel.py +index f9aaec280..de85df712 100644 +--- a/scripts/python/pybel.py ++++ b/scripts/python/pybel.py +@@ -81,7 +81,7 @@ def _getpluginnames(ptype): + ob.OBPlugin.ListAsVector(ptype, None, plugins) + if sys.platform[:4] == "java": + plugins = [plugins.get(i) for i in range(plugins.size())] +- return [x.split()[0] for x in plugins] ++ return [x.split()[0] for x in plugins if x.strip()] + + _obconv = ob.OBConversion() + _builder = ob.OBBuilder() diff -Nru openbabel-2.4.1+dfsg/debian/patches/series openbabel-2.4.1+dfsg/debian/patches/series --- openbabel-2.4.1+dfsg/debian/patches/series 2018-07-03 08:02:56.000000000 +0000 +++ openbabel-2.4.1+dfsg/debian/patches/series 2018-11-12 12:22:31.000000000 +0000 @@ -3,3 +3,4 @@ disable_json_formats.patch remove_link_top.diff manpages.diff +pybel_indexerror.patch