opkg_download: decode file:/ URLs
authorJo-Philipp Wich <jo@mein.io>
Thu, 7 Dec 2017 13:23:45 +0000 (14:23 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 Dec 2017 16:59:44 +0000 (17:59 +0100)
commit3b417b9f41b4ceb5912d82f867dd5534e5675b5c
tree6e3fe889befc33743e8017aff01eb72fa068a4c0
parent71c27cb3aee45ba22d3c7806401baf8a0dee3d94
opkg_download: decode file:/ URLs

Opkg might receive percent-encoded file:/ URLs from various sources,
e.g. local package lists, user-supplied command line arguments etc.

In order to support such URLs, decode the path component before
trying to invoke file operations on it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/opkg_download.c