Accepting request 318191 from GNOME:Next

New release

OBS-URL: https://build.opensuse.org/request/show/318191
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt-glib?expand=0&rev=46
This commit is contained in:
Ismail Dönmez 2015-07-24 08:29:00 +00:00 committed by Git OBS Bridge
parent cc84a10f00
commit 491efd2c04
5 changed files with 23 additions and 47 deletions

View File

@ -1,39 +0,0 @@
From 0b41f4823f49c4d90b9b8bb1841aea65fb626013 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cbosdonnat@suse.com>
Date: Tue, 7 Jul 2015 16:20:31 +0200
Subject: [glib] Don't overwrite filesystem type when writing format
When setting filesystem driver format first and type, only the type
remained and vice-versa.
---
libvirt-gconfig/libvirt-gconfig-domain-filesys.c | 8 ++++++--
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-filesys.c b/libvirt-gconfig/libvirt-gconfig-domain-filesys.c
index 9b73af5..4e33d5f 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-filesys.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-filesys.c
@@ -125,7 +125,9 @@ void gvir_config_domain_filesys_set_driver_type(GVirConfigDomainFilesys *filesys
GVirConfigObject *node;
g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys));
- node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ node = gvir_config_object_get_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ if (!node)
+ node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(filesys), "driver");
g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node));
if (type != GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_DEFAULT)
gvir_config_object_set_attribute_with_type(
@@ -143,7 +145,9 @@ void gvir_config_domain_filesys_set_driver_format(GVirConfigDomainFilesys *files
GVirConfigObject *node;
g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys));
- node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ node = gvir_config_object_get_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ if (!node)
+ node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(filesys), "driver");
g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node));
gvir_config_object_set_attribute_with_type(
2.1.4

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d856d37b708bc8bf9e6ac294edca7a53f2baa6d857c6f5859be58517a714a2fb
size 844657

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7be16025231c91ccae43838b7cdb1d55d181856a2a50b0f7b1c5078ad202d9d
size 853052

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Thu Jul 23 07:40:52 UTC 2015 - zaitor@opensuse.org
- Update to version 0.2.2:
+ Add API for getting interface MAC address.
+ Simplify implementation of object listing APIs.
+ Fix memory leaks of virConnect objects.
+ Port to use GTask instead of GSimpleAsyncResult.
+ Add API to get list of physical network interfaces.
+ Add API to get list of virtual networks.
+ Add API to get DHCP address of virtual networks.
+ Avoid overwriting filesystem type when setting format.
+ Include XML data for tests in dist.
+ Add support for UNIX chardev sources.
+ Fix test linking on platforms with strict linker deps.
+ Add ability to set video ram + vgamem.
- Drop 46897c1b-fs-type-fix.patch: Fixed upstream.
-------------------------------------------------------------------
Tue Jul 7 14:29:23 UTC 2015 - cbosdonnat@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libvirt-glib
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# All modifications and additions to the file contributed by third parties
@ -18,15 +18,13 @@
Name: libvirt-glib
Version: 0.2.1
Version: 0.2.2
Release: 0
Summary: GLib and GObject mapping of libvirt
License: LGPL-2.1+
Group: System/Libraries
Url: http://libvirt.org
Source: http://libvirt.org/sources/glib/%{name}-%{version}.tar.gz
# upstreamed patches
Patch1: 46897c1b-fs-type-fix.patch
BuildRequires: intltool >= 0.35.0
BuildRequires: libtool
BuildRequires: vala
@ -124,7 +122,6 @@ should be able to integrate other virtualization mechanisms if needed
%prep
%setup -q
%patch1 -p1
%build
%configure --disable-static