support/download: add option parsing to the download wrapper
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 11 Dec 2014 22:52:05 +0000 (23:52 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 11 Dec 2014 22:58:37 +0000 (23:58 +0100)
commit78b92e5055442e225b10ca6baf98f23a0fa8a102
tree08b3606e9c59645391b6d30138bb4233f3475f50
parentf8639c79d8f8af4ac01176e64d69062ac4644561
support/download: add option parsing to the download wrapper

Instead of relying on argument ordering, use actual options in the
download wrapper.

Download backends (bzr, cp, hg...) are left as-is, because it does not
make sense to complexify them, since they are almost very trivial shell
scripts, and adding option parsing would be really overkill.

This commit also renames the script to dl-wrapper so it looks better in
the traces, and it is not confused with another wrapper.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-download.mk
support/download/dl-wrapper [new file with mode: 0755]
support/download/wrapper [deleted file]