diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-08-01 20:10:20 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-10-27 18:22:27 +0200 |
commit | e268c9265b6a99f82f9a05709e63b660aa57a479 (patch) | |
tree | 5b9913f81cb55c9869745581d6d2c28ee209c44a /scripts/lib/ptxd_make_world_extract.sh | |
parent | ab0074aee54829c515a2772b8e6e8a46c461deaf (diff) | |
download | ptxdist-e268c9265b6a99f82f9a05709e63b660aa57a479.tar.gz ptxdist-e268c9265b6a99f82f9a05709e63b660aa57a479.tar.xz |
[extract] do nothing in extract and patching if both <PKG>_URL and <PKG>_SOURCE are undefined.
This makes it possible to use the default extract stage for packages
that have nothing to extract.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_extract.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_extract.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_extract.sh b/scripts/lib/ptxd_make_world_extract.sh index dc6bb878d..6f05a79bf 100644 --- a/scripts/lib/ptxd_make_world_extract.sh +++ b/scripts/lib/ptxd_make_world_extract.sh @@ -13,6 +13,11 @@ ptxd_make_world_extract() { ptxd_make_world_init || return + if [ -z "${pkg_url}" -a -z "${pkg_src}" ]; then + # no <PKG>_URL and no <PKG>_SOURCE -> assume the package has nothing to extract. + return + fi + pkg_extract_dir="${pkg_deprecated_extract_dir:-${pkg_extract_dir}}" case "${pkg_url}" in |