Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15
tracker-miners
tracker-miners-ps-atend.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tracker-miners-ps-atend.patch of Package tracker-miners
From 8ca94d715b860af4373168aea4f292f4aa7a24bd Mon Sep 17 00:00:00 2001 From: Andrea Azzarone <andrea.azzarone@canonical.com> Date: Wed, 24 Apr 2019 13:37:29 +0100 Subject: [PATCH] tracker-extract: Fix handling of (atend) in ps files Properly handle (atend) when parsing Postscript file. Also add a test case. --- src/tracker-extract/tracker-extract-ps.c | 5 ++--- tests/functional-tests/meson.build | 3 ++- .../office/ps-doc-atend.expected.json | 15 +++++++++++++++ .../test-extraction-data/office/ps-doc-atend.ps | 13 +++++++++++++ 4 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 tests/functional-tests/test-extraction-data/office/ps-doc-atend.expected.json create mode 100644 tests/functional-tests/test-extraction-data/office/ps-doc-atend.ps diff --git a/src/tracker-extract/tracker-extract-ps.c b/src/tracker-extract/tracker-extract-ps.c index 207a32a89..5df88a432 100644 --- a/src/tracker-extract/tracker-extract-ps.c +++ b/src/tracker-extract/tracker-extract-ps.c @@ -101,6 +101,8 @@ extract_ps_from_inputstream (GInputStream *stream) g_autoptr(GDataInputStream) data_stream = NULL; gchar *line; gsize length, accum, max_bytes; + gboolean pageno_atend = FALSE; + gboolean header_finished = FALSE; g_autoptr(GError) error = NULL; metadata = tracker_resource_new (NULL); @@ -114,9 +116,6 @@ extract_ps_from_inputstream (GInputStream *stream) while ((accum < max_bytes) && (line = g_data_input_stream_read_line (data_stream, &length, NULL, &error)) != NULL) { - gboolean pageno_atend = FALSE; - gboolean header_finished = FALSE; - /* Update accumulated bytes read */ accum += length;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor