summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-11-23 17:47:37 -0500
committerRichard Hughes <richard@hughsie.com>2013-11-25 08:59:44 +0000
commit93044c49e095bef19eff8ac5de0bd9c34b7a12b5 (patch)
tree659667075529dceb7c07d32bcd19fdfcec03ad44
parentb1ff66e0db88ff1e99f8278484855be4b7775621 (diff)
downloadcolord-93044c49e095bef19eff8ac5de0bd9c34b7a12b5.tar.gz
icc store: Don't create legacy locations
When cd_icc_store_search_kind is called with the CD_ICC_STORE_SEARCH_FLAGS_CREATE_LOCATION flag, it creates all the locations for the given kind. That is not really ideal, since all but the first one are basically legacy, and should not be forced into existence. The patch changes things so that the create-location flag only affects the first location. https://bugs.freedesktop.org/show_bug.cgi?id=69765 Signed-off-by: Richard Hughes <richard@hughsie.com>
-rw-r--r--lib/colord/cd-icc-store.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/colord/cd-icc-store.c b/lib/colord/cd-icc-store.c
index 9452725..60f38fc 100644
--- a/lib/colord/cd-icc-store.c
+++ b/lib/colord/cd-icc-store.c
@@ -672,6 +672,9 @@ cd_icc_store_search_kind (CdIccStore *store,
search_flags,
cancellable,
error);
+ /* only create the first location */
+ search_flags &= ~CD_ICC_STORE_SEARCH_FLAGS_CREATE_LOCATION;
+
if (!ret)
goto out;
}