Commit 448d0345 authored by Carlos Garnacho's avatar Carlos Garnacho

meson: Correct toggle for ps.gz extractor

It was inverted.
parent ca93b1c2
......@@ -314,7 +314,7 @@ conf = configuration_data()
# Config that goes in config.h
conf.set('DISABLE_JOURNAL', get_option('journal') == false)
conf.set('USING_UNZIPPSFILES', get_option('unzip_ps_gz_files') == false)
conf.set('USING_UNZIPPSFILES', get_option('unzip_ps_gz_files') == true)
conf.set('HAVE_TRACKER_EXTRACT', enable_extract)
conf.set('HAVE_TRACKER_WRITEBACK', enable_writeback)
......
......@@ -313,19 +313,23 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
TrackerResource *metadata;
GFile *file;
gchar *uri;
const char *mimetype;
file = tracker_extract_info_get_file (info);
mimetype = tracker_extract_info_get_mimetype (info);
uri = g_file_get_uri (file);
{
#ifdef USING_UNZIPPSFILES
if (strcmp (mimetype, "application/x-gzpostscript") == 0) {
metadata = extract_ps_gz (uri);
} else
const char *mimetype;
mimetype = tracker_extract_info_get_mimetype (info);
if (strcmp (mimetype, "application/x-gzpostscript") == 0) {
metadata = extract_ps_gz (uri);
} else
#endif /* USING_UNZIPPSFILES */
{
metadata = extract_ps (uri);
{
metadata = extract_ps (uri);
}
}
g_free (uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment