download: factor out the logic for building cache filenames
authorBaptiste Jonglez <[email protected]>
Mon, 24 Aug 2020 23:00:30 +0000 (01:00 +0200)
committerBaptiste Jonglez <[email protected]>
Sun, 31 Jan 2021 09:56:12 +0000 (10:56 +0100)
commit456efacff7152f06fe8b9776746983c5b8038a0c
treea91ff3aa1f467f99ba70db2432dd172305c502ca
parentb1450301fc381082ccfe3c26728451f6923b50a1
download: factor out the logic for building cache filenames

If we want to access files in the cache from multiple functions, it is
necessary to have a single source of truth regarding the naming of files
in the cache.

Signed-off-by: Baptiste Jonglez <[email protected]>
(cherry picked from commit 1c1480e573fc6b4c5f9c51bf225c32456672e5f8)
libopkg/opkg_download.c