This seems to be a mistake, in place since the first commit: we only
want the downloaded data in memory if this is a sha256sums or gpg file,
which we need to prorcess ourselves.
return r;
i->raw_job->calc_checksum = r;
- i->raw_job->force_memory = true; /* make sure this is both written to disk if that's
- * requested and into memory, since we need to verify it */
+ i->raw_job->force_memory = !r; /* make sure this is both written to disk if that's
+ * requested and into memory, since we need to verify it */
}
if (size_max != UINT64_MAX)