GNOME Bugzilla – Bug 783592
queryloaders: Make output more reproducible
Last modified: 2017-10-02 10:10:43 UTC
Created attachment 353454 [details] [review] queryloaders: Make output more reproducible Current query-loaders loader order is unpredictable (it's based on fs directory order). This leads to loader.cache and gdk-pixbuf-thumbnailer.thumbnailer to be unpredictable: contents are correct but the loader order varies. It would be better to always get the same output on specific input: this helps make OS image builds reproducible.
Review of attachment 353454 [details] [review]: Looks good otherwise. Either respin the patch, or push to master after making the changes in the review. Thanks! ::: gdk-pixbuf/queryloaders.c @@ +342,3 @@ const char *path; GDir *dir; + GList *l, *modules = NULL; initialise just before the loop below. @@ +362,3 @@ if (len > SOEXT_LEN && strcmp (dent + len - SOEXT_LEN, SOEXT) == 0) { + modules = g_list_prepend (modules, no need for the new line here.
*** Bug 777332 has been marked as a duplicate of this bug. ***
Thanks, pushed to master as a42302aeb41 .
(In reply to Bastien Nocera from comment #1) <snip> > @@ +362,3 @@ > if (len > SOEXT_LEN && > strcmp (dent + len - SOEXT_LEN, SOEXT) > == 0) { > + modules = g_list_prepend (modules, > > no need for the new line here. You removed the newline in the wrong place ;)
Oh you really wanted the g_list_prepend() on a single line? Sorry, I thought your comment wasn't in the right place -- my bad, shouldn't have assumed. Let me know if you want me to modify further.