- update to libvirt-python-1.2.17

This commit is contained in:
jasper 2015-07-14 23:30:27 +00:00
parent ddd2ca9a0d
commit a3a1cc37aa
3 changed files with 45 additions and 5 deletions

View File

@ -1,12 +1,11 @@
# $OpenBSD: Makefile,v 1.15 2015/06/17 10:23:17 jasper Exp $
# $OpenBSD: Makefile,v 1.16 2015/07/14 23:30:27 jasper Exp $
SHARED_ONLY = Yes
COMMENT = libvirt virtualization API python bindings
MODPY_EGG_VERSION = 1.2.16
MODPY_EGG_VERSION = 1.2.17
DISTNAME = libvirt-python-${MODPY_EGG_VERSION}
REVISION = 0
CATEGORIES = sysutils

View File

@ -1,2 +1,2 @@
SHA256 (libvirt-python-1.2.16.tar.gz) = RO3dNT1m8kOA2QUDvxbzFVwI89hNnMQ3XTUp8xKn2P4=
SIZE (libvirt-python-1.2.16.tar.gz) = 167711
SHA256 (libvirt-python-1.2.17.tar.gz) = 9NPbQBKoAKJRnmK770zhSjfgMKIKsY9bZnWVM6ObNu0=
SIZE (libvirt-python-1.2.17.tar.gz) = 170511

View File

@ -0,0 +1,41 @@
$OpenBSD: patch-generator_py,v 1.1 2015/07/14 23:30:27 jasper Exp $
- revert:
From d3e2aff6a701480bf19bdfe748c1c6def2db0a50 Mon Sep 17 00:00:00 2001
From: Jiri Denemark <jdenemar@redhat.com>
Date: Fri, 5 Jun 2015 10:17:53 +0200
Subject: [PATCH] Provide symbolic names for typed parameters
https://bugzilla.redhat.com/show_bug.cgi?id=1222795
--- generator.py.orig Thu Jul 2 07:32:19 2015
+++ generator.py Fri Jul 10 21:16:15 2015
@@ -10,7 +10,6 @@ enums = {} # { enumType: { enumConstant: enumValue } }
lxc_enums = {} # { enumType: { enumConstant: enumValue } }
qemu_enums = {} # { enumType: { enumConstant: enumValue } }
event_ids = []
-params = [] # [ (parameName, paramValue)... ]
import os
import sys
@@ -135,9 +134,6 @@ class docParser(xml.sax.handler.ContentHandler):
lxc_enum(attrs['type'],attrs['name'],attrs['value'])
elif attrs['file'] == "libvirt-qemu":
qemu_enum(attrs['type'],attrs['name'],attrs['value'])
- elif tag == "macro":
- if "string" in attrs:
- params.append((attrs['name'], attrs['string']))
def end(self, tag):
if debug:
@@ -1884,10 +1880,6 @@ def buildWrappers(module):
for name,value in items:
classes.write("%s = %s\n" % (name,value))
classes.write("\n")
-
- classes.write("# typed parameter names\n")
- for name, value in params:
- classes.write("%s = \"%s\"\n" % (name, value))
classes.close()