From: Travis Reitter Date: Thu, 27 Oct 2011 00:30:37 +0000 (-0700) Subject: Generate the same C code whether the eds backend is enabled or not. X-Git-Tag: FOLKS_0_6_5~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b15f6e0efb4b0191e8f516609e11369afce08b3c;p=platform%2Fupstream%2Ffolks.git Generate the same C code whether the eds backend is enabled or not. Previously, the configure options used would alter the release tarball. This would cause problems for anyone building from the shipped C files (specifically, if they also disabled the eds backend, as the Debian packagers did). Closes: bgo#662274 - Failed to link personas: Can't link personas with no primary store. --- diff --git a/NEWS b/NEWS index 6113612..fa24e5f 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ Bugs fixed: * Bug 660908 — Add favourites support to EDS backend * Bug 662770 — ContactPhotos are ignored when mime type is null * Bug 662616 — We should set mime type when setting an EContact's photo +* Bug 662274 — Failed to link personas: Can't link personas with no primary + store. API changes: * Add AbstractFieldDetails.id to identify instances of details diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala index d8df003..f1eeaba 100644 --- a/folks/individual-aggregator.vala +++ b/folks/individual-aggregator.vala @@ -303,13 +303,16 @@ public class Folks.IndividualAggregator : Object else { debug ("Setting primary store IDs to defaults."); -#if ENABLE_EDS - this._configured_primary_store_type_id = "eds"; - this._configured_primary_store_id = "system"; -#else - this._configured_primary_store_type_id = "key-file"; - this._configured_primary_store_id = ""; -#endif + if (BuildConf.HAVE_EDS) + { + this._configured_primary_store_type_id = "eds"; + this._configured_primary_store_id = "system"; + } + else + { + this._configured_primary_store_type_id = "key-file"; + this._configured_primary_store_id = ""; + } try {