More fixes

This commit is contained in:
Matthias Clasen 2012-01-20 12:55:19 -05:00
parent 3964d2ba7c
commit 7ac06cffda
2 changed files with 20 additions and 8 deletions

View File

@ -1,7 +1,7 @@
Summary: Color daemon Summary: Color daemon
Name: colord Name: colord
Version: 0.1.16 Version: 0.1.16
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv2+ and LGPLv2+ License: GPLv2+ and LGPLv2+
URL: http://www.freedesktop.org/software/colord/ URL: http://www.freedesktop.org/software/colord/
Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
@ -40,7 +40,7 @@ Files for development with %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1 -b .iter
%build %build
%configure \ %configure \
@ -106,7 +106,7 @@ exit 0
%{_datadir}/vala/vapi/*.vapi %{_datadir}/vala/vapi/*.vapi
%changelog %changelog
* Fri Jan 20 2012 Matthias Clasen <mclasen@redha.com> - 0.1.16-2 * Fri Jan 20 2012 Matthias Clasen <mclasen@redha.com> - 0.1.16-3
- Fix some obvious bugs - Fix some obvious bugs
* Tue Jan 17 2012 Richard Hughes <richard@hughsie.com> 0.1.16-1 * Tue Jan 17 2012 Richard Hughes <richard@hughsie.com> 0.1.16-1

View File

@ -1,8 +1,20 @@
diff --git a/libcolord/cd-profile.c b/libcolord/cd-profile.c diff -up colord-0.1.16/libcolord/cd-device.c.iter colord-0.1.16/libcolord/cd-device.c
index 03decf8..95efc46 100644 --- colord-0.1.16/libcolord/cd-device.c.iter 2012-01-20 12:54:20.620011834 -0500
--- a/libcolord/cd-profile.c +++ colord-0.1.16/libcolord/cd-device.c 2012-01-20 12:54:32.586012014 -0500
+++ b/libcolord/cd-profile.c @@ -472,8 +472,7 @@ cd_device_set_metadata_from_variant (CdD
@@ -440,8 +440,7 @@ cd_profile_set_metadata_from_variant (CdProfile *profile, GVariant *variant) g_hash_table_remove_all (device->priv->metadata);
/* insert the new metadata */
- g_variant_get (variant, "a{ss}",
- &iter);
+ g_variant_iter_init (&iter, variant);
while (g_variant_iter_loop (iter, "{ss}",
&prop_key, &prop_value)) {
g_hash_table_insert (device->priv->metadata,
diff -up colord-0.1.16/libcolord/cd-profile.c.iter colord-0.1.16/libcolord/cd-profile.c
--- colord-0.1.16/libcolord/cd-profile.c.iter 2011-09-13 07:38:56.000000000 -0400
+++ colord-0.1.16/libcolord/cd-profile.c 2012-01-20 12:54:02.525011562 -0500
@@ -440,8 +440,7 @@ cd_profile_set_metadata_from_variant (Cd
g_hash_table_remove_all (profile->priv->metadata); g_hash_table_remove_all (profile->priv->metadata);
/* insert the new metadata */ /* insert the new metadata */