diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-26 11:51:11 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-26 19:55:12 +0200 |
commit | c73e791bc14df1d6af27e1a47c1e6fbb1218e1c7 (patch) | |
tree | f3ffa4e6cf9706b900b0b6d33735f02500110388 /package/diffutils | |
parent | 149bcb62ece83f1bba4ed1365dbc9f62dcbbcb5c (diff) | |
download | buildroot-c73e791bc14df1d6af27e1a47c1e6fbb1218e1c7.tar.gz buildroot-c73e791bc14df1d6af27e1a47c1e6fbb1218e1c7.zip |
pkg-generic: introduce a <pkg>_ALL_DOWNLOADS variable and factorize code
Now, both the download and source-check code are iterating over
<pkg>_SOURCE, <pkg>_PATCH and <pkg>_EXTRA_DOWNLOADS elements, figuring
out whether they contain full URLs or not. Instead of doing this
repeatdly, this patch introduces an internal <pkg>_ALL_DOWNLOADS
variable, which contains the list of everything that needs to be
downloaded, with URLs already expanded to take into account <pkg>_SITE
if needed.
This allows to simplify quite significantly the .stamp_download and
source-check implementation.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'package/diffutils')
0 files changed, 0 insertions, 0 deletions