[SCM] zynjacku/master: 0002-handle_empty_doapmaintainer_field.patch: Handle empty doap:maintainer.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Thu Feb 10 13:35:33 UTC 2011
The following commit has been merged in the master branch:
commit 7c8e5c73c550c15ccdfc9ce1276da9d286a97751
Author: Alessio Treglia <alessio at debian.org>
Date: Thu Feb 10 14:35:18 2011 +0100
0002-handle_empty_doapmaintainer_field.patch: Handle empty doap:maintainer.
EQ10Q-1.0 does not define the foaf prefix and this causes empty doap:maintainer.
diff --git a/debian/patches/0002-handle_empty_doapmaintainer_field.patch b/debian/patches/0002-handle_empty_doapmaintainer_field.patch
new file mode 100644
index 0000000..8d26720
--- /dev/null
+++ b/debian/patches/0002-handle_empty_doapmaintainer_field.patch
@@ -0,0 +1,31 @@
+From: Nedko Arnaudov <nedko at arnaudov.name>
+Origin: upstream, commit:ed42d022a71c3d07fbfd4671cf384c3e08de587e
+Description: Handle empty doap:maintainer.
+ EQ10Q-1.0 does not define the foaf prefix and this causes empty
+ doap:maintainer.
+---
+ zynworld/lv2.py | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+--- zynjacku.orig/zynworld/lv2.py
++++ zynjacku/zynworld/lv2.py
+@@ -488,14 +488,17 @@ class LV2DB:
+ for maintainer in info.bySubject[uri][doap + "maintainer"]:
+ maintainersubj = info.bySubject[maintainer]
+ maintainerdict = {}
+- maintainerdict['name'] = info.getProperty(maintainersubj, foaf + "name")[0]
++ maintainer_names = info.getProperty(maintainersubj, foaf + "name")
++ if maintainer_names:
++ maintainerdict['name'] = maintainer_names[0]
+ homepages = info.getProperty(maintainersubj, foaf + "homepage")
+ if homepages:
+ maintainerdict['homepage'] = homepages[0]
+ mboxes = info.getProperty(maintainersubj, foaf + "mbox")
+ if mboxes:
+ maintainerdict['mbox'] = mboxes[0]
+- dest.maintainers.append(maintainerdict)
++ if maintainerdict:
++ dest.maintainers.append(maintainerdict)
+
+ ports = []
+ portDict = {}
--
zynjacku packaging
More information about the pkg-multimedia-commits
mailing list