download: remove compatibility with old cache naming scheme
authorBaptiste Jonglez <git@bitsofnetworks.org>
Mon, 24 Aug 2020 23:00:28 +0000 (01:00 +0200)
committerBaptiste Jonglez <git@bitsofnetworks.org>
Sun, 31 Jan 2021 09:56:03 +0000 (10:56 +0100)
commit74bac7a996cad04b66297c4e1f936a9c696397ef
tree53f96a4d48b4091551a4e811cfec2ecb2019e1de
parentf2166a89b7e96e2c60002959731eebc5f45fa318
download: remove compatibility with old cache naming scheme

A long time ago, the name of cached files was derived from the source URL.
This was changed in 2011 with d46db43e21 ("Don't include the source URI in
the cached filename.")

Some compatibility code was left behind: even today, we are still trying
to read from the old filename.  The goal of this compatibility code was to
account for existing caches that still had files with the old naming
scheme.

More than 9 years later, it is safe to remove this compatibility code.
It simplifies the download code and avoids a useless disk access.

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
(cherry picked from commit a786e25f5cbcb9372864a4edf12b7e80774c4514)
libopkg/opkg_download.c