Update to netifaces-0.10.5

This commit is contained in:
jca 2016-08-27 06:35:42 +00:00
parent a6939112c5
commit 282884ad2c
3 changed files with 4 additions and 21 deletions

View File

@ -1,11 +1,10 @@
# $OpenBSD: Makefile,v 1.2 2016/07/08 16:48:21 sthen Exp $
# $OpenBSD: Makefile,v 1.3 2016/08/27 06:35:42 jca Exp $
COMMENT = portable network interface information
CATEGORIES = net
MODPY_EGG_VERSION = 0.10.4
REVISION = 0
MODPY_EGG_VERSION = 0.10.5
DISTNAME = netifaces-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}

View File

@ -1,2 +1,2 @@
SHA256 (netifaces-0.10.4.tar.gz) = llahacuD2jTXMrDrcrOTc9SHdK7gCaPRJyt+os4QnN4=
SIZE (netifaces-0.10.4.tar.gz) = 22969
SHA256 (netifaces-0.10.5.tar.gz) = WditUt0xFvy2Y14XV1GyUNx4P7ARrbpTlVi9dk5dYos=
SIZE (netifaces-0.10.5.tar.gz) = 24879

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-netifaces_c,v 1.1.1.1 2016/01/21 08:53:59 sthen Exp $
As done on lines 2043, 2222
--- netifaces.c.orig Wed Jan 20 21:59:08 2016
+++ netifaces.c Wed Jan 20 22:06:28 2016
@@ -1813,7 +1813,8 @@ gateways (PyObject *self)
#ifdef RTF_IFSCOPE
PyObject *isdefault = PyBool_FromLong (!(msg->rtm_flags & RTF_IFSCOPE));
#else
- PyObject *isdefault = Py_INCREF(Py_True);
+ PyObject *isdefault = Py_True;
+ Py_INCREF (isdefault);
#endif
tuple = PyTuple_Pack (3, pyaddr, pyifname, isdefault);