Commit b9590ab7 authored by Ondrej Holy's avatar Ondrej Holy
Browse files

extractor: Prevent redundant path name handling for equal prefixes

Currently, redundant path name handling happens when archive files have
a common prefix and an equal destination is returned from the `decide-destination`
signal. In this case, the old prefix is removed and the new one (the equal one)
is added again. Let's detect this case and prevent the redundancy.
parent 135053d5
......@@ -1817,9 +1817,12 @@ autoar_extractor_step_decide_destination (AutoarExtractor *self)
autoar_extractor_signal_decide_destination (self,
self->new_prefix = new_destination;
if (self->new_prefix && g_file_equal (self->prefix, self->new_prefix)) {
/* This prevents redundant path name handling later. */
g_clear_object (&self->new_prefix);
} else {
autoar_extractor_signal_decide_destination (self,
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