Hello community, here is the log from the commit of package libvirt-python for openSUSE:Factory checked in at 2014-03-04 13:45:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libvirt-python (Old) and /work/SRC/openSUSE:Factory/.libvirt-python.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvirt-python" Changes: -------- --- /work/SRC/openSUSE:Factory/libvirt-python/libvirt-python.changes 2014-01-30 11:30:40.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libvirt-python.new/libvirt-python.changes 2014-03-04 13:45:29.000000000 +0100 @@ -1,0 +2,6 @@ +Sun Mar 2 19:49:08 MST 2014 - [email protected] + +- Update to 1.2.2 + - Add all new APIs and constants in libvirt 1.2.2 + +------------------------------------------------------------------- Old: ---- libvirt-python-1.2.1.tar.bz2 New: ---- libvirt-python-1.2.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt-python.spec ++++++ --- /var/tmp/diff_new_pack.6ek3BI/_old 2014-03-04 13:45:29.000000000 +0100 +++ /var/tmp/diff_new_pack.6ek3BI/_new 2014-03-04 13:45:29.000000000 +0100 @@ -18,7 +18,7 @@ Name: libvirt-python Url: http://libvirt.org/ -Version: 1.2.1 +Version: 1.2.2 Release: 0 Summary: Library providing a simple virtualization API License: LGPL-2.1+ ++++++ libvirt-python-1.2.1.tar.bz2 -> libvirt-python-1.2.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/AUTHORS new/libvirt-python-1.2.2/AUTHORS --- old/libvirt-python-1.2.1/AUTHORS 2014-01-16 10:34:23.000000000 +0100 +++ new/libvirt-python-1.2.2/AUTHORS 2014-03-02 15:41:31.000000000 +0100 @@ -326,6 +326,9 @@ Eric Blake <[email protected]> Eric Blake <[email protected]> Eric Blake <[email protected]> + Eric Blake <[email protected]> + Eric Blake <[email protected]> + Eric Blake <[email protected]> Federico Simoncelli <[email protected]> Giuseppe Scrivano <[email protected]> Giuseppe Scrivano <[email protected]> @@ -417,6 +420,7 @@ Martin Kletzander <[email protected]> Martin Kletzander <[email protected]> Martin Kletzander <[email protected]> + Martin Kletzander <[email protected]> MATSUDA Daiki <[email protected]> MATSUDA Daiki <[email protected]> Matthias Bolte <[email protected]> @@ -482,6 +486,7 @@ Philipp Hahn <[email protected]> Philipp Hahn <[email protected]> Philipp Hahn <[email protected]> + Philipp Hahn <[email protected]> Richard W.M. Jones <[email protected]> Richard W.M. Jones <[email protected]> Richard W.M. Jones <[email protected]> @@ -492,6 +497,7 @@ Richard W.M. Jones <[email protected]> Richard W.M. Jones <[email protected]> Richard W.M. Jones <[email protected]> + Robie Basak <[email protected]> Serge Hallyn <[email protected]> Stefan Berger <[email protected]> Stefan Berger <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/ChangeLog new/libvirt-python-1.2.2/ChangeLog --- old/libvirt-python-1.2.1/ChangeLog 2014-01-16 10:34:24.000000000 +0100 +++ new/libvirt-python-1.2.2/ChangeLog 2014-03-02 15:41:31.000000000 +0100 @@ -1,3 +1,56 @@ +2014-02-20 Martin Kletzander <[email protected]> + + generator: Skip exporting only sentinels + When enum type has '_LAST' in its name, but is not the last type in + that enum, it's skipped even though it shouldn't be. Currently, this + is the case for only VIR_NETWORK_UPDATE_COMMAND_ADD_LAST inside an + enum virNetworkUpdateCommand. + + Also, since _LAST types can have other enums instead of values, that + needs to be filtered out using a try-except when converting the value. + + + +2014-02-13 Philipp Hahn <[email protected]> + + Fix stream related spelling mistakes + Consistent spelling of all-uppercase I/O. + + + +2014-02-12 Eric Blake <[email protected]> + + examples: demonstrate network events + Commit 6ea5be0 added network event callback support, so we might + as well demonstrate that it works by updating our example. + + * examples/event-test.py: Add network event, fix typos. + + + +2014-02-04 Eric Blake <[email protected]> + + maint: ignore editor files + * .gitignore: Exclude emacs cruft. + + + +2014-02-03 Eric Blake <[email protected]> + + Merge tag 'v1.2.1' + Release of libvirt-python-1.2.1 + + +2014-01-23 Robie Basak <[email protected]> + + Fix calling of virStreamSend method + Change d40861 removed the 'len' argument from the virStreamSend + C level wrapper, but forgot to remove it from the python level + wrapper. + + Reported-by: Robie Basak <[email protected]> + + 2014-01-16 Daniel Veillard <[email protected]> Release of libvirt-python-1.2.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/PKG-INFO new/libvirt-python-1.2.2/PKG-INFO --- old/libvirt-python-1.2.1/PKG-INFO 2014-01-16 10:34:24.000000000 +0100 +++ new/libvirt-python-1.2.2/PKG-INFO 2014-03-02 15:41:32.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: libvirt-python -Version: 1.2.1 +Version: 1.2.2 Summary: The libvirt virtualization API Home-page: http://www.libvirt.org Author: Libvirt Maintainers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/examples/event-test.py new/libvirt-python-1.2.2/examples/event-test.py --- old/libvirt-python-1.2.1/examples/event-test.py 2014-01-08 04:12:49.000000000 +0100 +++ new/libvirt-python-1.2.2/examples/event-test.py 2014-02-24 06:31:25.000000000 +0100 @@ -2,9 +2,9 @@ # # # -################################################################################# -# Start off by implementing a general purpose event loop for anyones use -################################################################################# +############################################################################## +# Start off by implementing a general purpose event loop for anyone's use +############################################################################## import sys import getopt @@ -158,7 +158,7 @@ # This is the heart of the event loop, performing one single # iteration. It asks when the next timeout is due, and then - # calcuates the maximum amount of time it is able to sleep + # calculates the maximum amount of time it is able to sleep # for in poll() pending file handle events. # # It then goes into the poll() sleep. @@ -167,9 +167,9 @@ # events which need to be dispatched to registered callbacks # It may also be time to fire some periodic timers. # - # Due to the coarse granularity of schedular timeslices, if + # Due to the coarse granularity of scheduler timeslices, if # we ask for a sleep of 500ms in order to satisfy a timer, we - # may return up to 1 schedular timeslice early. So even though + # may return up to 1 scheduler timeslice early. So even though # our sleep timeout was reached, the registered timer may not # technically be at its expiry point. This leads to us going # back around the loop with a crazy 5ms sleep. So when checking @@ -227,7 +227,7 @@ self.runningPoll = False - # Actually the event loop forever + # Actually run the event loop forever def run_loop(self): self.quit = False while not self.quit: @@ -429,8 +429,8 @@ ########################################################################## # Everything that now follows is a simple demo of domain lifecycle events ########################################################################## -def eventToString(event): - eventStrings = ( "Defined", +def domEventToString(event): + domEventStrings = ( "Defined", "Undefined", "Started", "Suspended", @@ -438,11 +438,12 @@ "Stopped", "Shutdown", "PMSuspended", - "Crashed" ) - return eventStrings[event] + "Crashed", + ) + return domEventStrings[event] -def detailToString(event, detail): - eventStrings = ( +def domDetailToString(event, detail): + domEventStrings = ( ( "Added", "Updated" ), ( "Removed", ), ( "Booted", "Migrated", "Restored", "Snapshot", "Wakeup" ), @@ -451,19 +452,19 @@ ( "Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", "Failed", "Snapshot"), ( "Finished", ), ( "Memory", "Disk" ), - ( "Panicked", ) + ( "Panicked", ), ) - return eventStrings[event][detail] + return domEventStrings[event][detail] def myDomainEventCallback1 (conn, dom, event, detail, opaque): print("myDomainEventCallback1 EVENT: Domain %s(%s) %s %s" % (dom.name(), dom.ID(), - eventToString(event), - detailToString(event, detail))) + domEventToString(event), + domDetailToString(event, detail))) def myDomainEventCallback2 (conn, dom, event, detail, opaque): print("myDomainEventCallback2 EVENT: Domain %s(%s) %s %s" % (dom.name(), dom.ID(), - eventToString(event), - detailToString(event, detail))) + domEventToString(event), + domDetailToString(event, detail))) def myDomainEventRebootCallback(conn, dom, opaque): print("myDomainEventRebootCallback: Domain %s(%s)" % (dom.name(), dom.ID())) @@ -501,6 +502,35 @@ print("myDomainEventDeviceRemovedCallback: Domain %s(%s) device removed: %s" % ( dom.name(), dom.ID(), dev)) +########################################################################## +# Network events +########################################################################## +def netEventToString(event): + netEventStrings = ( "Defined", + "Undefined", + "Started", + "Stopped", + ) + return netEventStrings[event] + +def netDetailToString(event, detail): + netEventStrings = ( + ( "Added", ), + ( "Removed", ), + ( "Started", ), + ( "Stopped", ), + ) + return netEventStrings[event][detail] + +def myNetworkEventLifecycleCallback(conn, net, event, detail, opaque): + print("myNetworkEventLifecycleCallback: Network %s %s %s" % (net.name(), + netEventToString(event), + netDetailToString(event, detail))) + +########################################################################## +# Set up and run the program +########################################################################## + run = True def myConnectionCloseCallback(conn, reason, opaque): @@ -577,6 +607,8 @@ vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK, myDomainEventPMSuspendDiskCallback, None) vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED, myDomainEventDeviceRemovedCallback, None) + vc.networkEventRegisterAny(None, libvirt.VIR_NETWORK_EVENT_ID_LIFECYCLE, myNetworkEventLifecycleCallback, None) + vc.setKeepAlive(5, 3) # The rest of your app would go here normally, but for sake diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/generator.py new/libvirt-python-1.2.2/generator.py --- old/libvirt-python-1.2.1/generator.py 2014-01-08 04:12:49.000000000 +0100 +++ new/libvirt-python-1.2.2/generator.py 2014-02-24 06:31:25.000000000 +0100 @@ -227,10 +227,9 @@ value = 1 elif value == 'VIR_DOMAIN_AFFECT_CONFIG': value = 2 - if name[-5:] != '_LAST': - if onlyOverrides and name not in enums[type]: - return - enums[type][name] = value + if onlyOverrides and name not in enums[type]: + return + enums[type][name] = value def lxc_enum(type, name, value): if type not in lxc_enums: @@ -1765,13 +1764,23 @@ # # Generate enum constants # + def enumsSortKey(data): + value = data[1] + try: + value = int(value) + except ValueError: + value = float('inf') + return value + enumvals = list(enums.items()) if enumvals is not None: enumvals.sort(key=lambda x: x[0]) for type,enum in enumvals: classes.write("# %s\n" % type) items = list(enum.items()) - items.sort(key=lambda i: int(i[1])) + items.sort(key=enumsSortKey) + if items[-1][0].endswith('_LAST'): + del items[-1] for name,value in items: classes.write("%s = %s\n" % (name,value)) classes.write("\n") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/libvirt-override-virStream.py new/libvirt-python-1.2.2/libvirt-override-virStream.py --- old/libvirt-python-1.2.1/libvirt-override-virStream.py 2014-01-14 03:39:01.000000000 +0100 +++ new/libvirt-python-1.2.2/libvirt-override-virStream.py 2014-02-24 06:31:25.000000000 +0100 @@ -28,7 +28,7 @@ def recvAll(self, handler, opaque): """Receive the entire data stream, sending the data to the requested data sink. This is simply a convenient alternative - to virStreamRecv, for apps that do blocking-I/o. + to virStreamRecv, for apps that do blocking-I/O. A hypothetical handler function looks like: @@ -62,7 +62,7 @@ """ Send the entire data stream, reading the data from the requested data source. This is simply a convenient alternative - to virStreamSend, for apps that do blocking-I/o. + to virStreamSend, for apps that do blocking-I/O. A hypothetical handler function looks like: @@ -122,6 +122,6 @@ with the call, but may instead be delayed until a subsequent call. """ - ret = libvirtmod.virStreamSend(self._o, data, len(data)) + ret = libvirtmod.virStreamSend(self._o, data) if ret == -1: raise libvirtError ('virStreamSend() failed') return ret diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/libvirt-python.spec new/libvirt-python-1.2.2/libvirt-python.spec --- old/libvirt-python-1.2.1/libvirt-python.spec 2014-01-16 10:34:23.000000000 +0100 +++ new/libvirt-python-1.2.2/libvirt-python.spec 2014-03-02 15:41:31.000000000 +0100 @@ -6,7 +6,7 @@ Summary: The libvirt virtualization API python2 binding Name: libvirt-python -Version: 1.2.1 +Version: 1.2.2 Release: 1%{?dist}%{?extra_release} Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz Url: http://libvirt.org diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.1/setup.py new/libvirt-python-1.2.2/setup.py --- old/libvirt-python-1.2.1/setup.py 2014-01-08 04:44:00.000000000 +0100 +++ new/libvirt-python-1.2.2/setup.py 2014-02-26 07:16:23.000000000 +0100 @@ -278,7 +278,7 @@ remove_tree("build") setup(name = 'libvirt-python', - version = '1.2.1', + version = '1.2.2', url = 'http://www.libvirt.org', maintainer = 'Libvirt Maintainers', maintainer_email = '[email protected]', -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
