1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2025-04-21 12:27:27 +03:00

alpy: some more patching, make exmples python scripts work & package them

This commit is contained in:
David Kühling
2012-03-30 02:39:37 +02:00
parent 505ce6b306
commit 1353ef0e09
3 changed files with 329 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
Index: Alpy-0.1.5/_alpymodule.c
===================================================================
--- Alpy-0.1.5.orig/_alpymodule.c 2012-03-30 01:32:30.846018939 +0200
+++ Alpy-0.1.5/_alpymodule.c 2012-03-30 01:32:46.162091430 +0200
@@ -1194,7 +1194,7 @@
break;
}
}
- if(i == -1) {
+ if(index == -1) {
PyErr_Format(PyExc_NameError, "no such counter: %s", name);
PyMem_Free(name);
return NULL;