diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-01-12 16:38:43 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-01-18 10:00:15 +0100 |
commit | 774758bb247008aeeddf28587053c0aeaa877f5c (patch) | |
tree | d3553e2f848da395a81ca91c0c8d01055a042c1f /scripts/lib/ptxd_make_world_common.sh | |
parent | b4edfb98da8ad0f2430e4775e3ce28289c9c01b1 (diff) | |
download | ptxdist-774758bb247008aeeddf28587053c0aeaa877f5c.tar.gz ptxdist-774758bb247008aeeddf28587053c0aeaa877f5c.tar.xz |
[ptxd_make_world_common] sanatize ${pkg_pkg_dir}
if ${pkg_pkg} is not defined the ${pkg_pkg_dir} defaults to
"${ptx_pkg_dir}/" which is wrong.
If that happens unset ${pkg_pkg_dir}
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_common.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index b65189087..9769f29fb 100644 --- a/scripts/lib/ptxd_make_world_common.sh +++ b/scripts/lib/ptxd_make_world_common.sh @@ -193,6 +193,13 @@ ptxd_make_world_init() { ptxd_make_world_init_sanity_check || return # + # sanitize pkg_pkg_dir + # + if [ "${pkg_pkg_dir}" = "${ptx_pkg_dir}/" ]; then + pkg_pkg_dir="" + fi + + # # type # case "${pkg_stamp}" in |