opkg_download: decode file:/ URLs lede-17.01
authorJo-Philipp Wich <jo@mein.io>
Thu, 7 Dec 2017 13:23:45 +0000 (14:23 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 8 Dec 2017 12:46:46 +0000 (13:46 +0100)
commit9f61f7acf3845d2e09675b49fec5d783d57eb780
treee451628c93639a3200616134306b55cd1606b84c
parent3c46c880df81a51ed44cfdd713a6734a245693a8
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