kupfer: Apply settings validation patch and add python-keybinder2 dependency

This commit is contained in:
ShadowKyogre 2014-11-05 12:36:06 -08:00
parent 344942ecbf
commit ee18e4ecc8
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,23 @@
diff -aur kupfer-v208/kupfer/core/settings.py
kupfer-v208.modified/kupfer/core/settings.py
--- kupfer-v208/kupfer/core/settings.py 2012-06-01 10:51:14.000000000 -0700
+++ kupfer-v208.modified/kupfer/core/settings.py 2012-11-21 14:48:11.876592441
-0800
@@ -393,6 +393,8 @@
"""
Get a list of (id_, name) tuples for the given @category_key
"""
+ if not category_key in self._alternative_validators:
+ return
validator = self._alternative_validators[category_key]
for (id_, alternative) in self._alternatives[category_key].iteritems():
name = alternative["name"]
@@ -400,7 +402,8 @@
yield (id_, name)
def get_all_alternatives(self, category_key):
- return self._alternatives[category_key]
+ if category_key in self._alternatives:
+ return self._alternatives[category_key]
def get_preferred_alternative(self, category_key):

View File

@ -1,10 +1,11 @@
# Template file for 'kupfer'
pkgname=kupfer
version=208
revision=2
revision=3
patch_args="-Np1"
build_style=waf
hostmakedepends="perl intltool"
makedepends="python python-gobject2 pygtk python-xdg python-dbus"
makedepends="python python-gobject2 pygtk python-xdg python-dbus python-keybinder2"
depends="$makedepends"
short_desc="Interface for quick and convenient access to applications"
maintainer="Enno Boland <eb@s01.de>"