diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-04-07 08:57:06 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-04-11 11:18:17 +0200 |
commit | ff322a6b18ab138276fa09fd8546dadea4ad9d73 (patch) | |
tree | f01f3b9b73a0fd0b753cc52faba8f9aa10deb57d /scripts | |
parent | b557637599b1ac3a8a5c08c04c06cc861a3f3071 (diff) | |
download | ptxdist-ff322a6b18ab138276fa09fd8546dadea4ad9d73.tar.gz ptxdist-ff322a6b18ab138276fa09fd8546dadea4ad9d73.tar.xz |
ptxd_install_setup_src: abort if files a found in legacy locations
This helps with migration. Otherwise files in e.g. projectroot/lib/ in the
BSP a silently skipped for packages that have been converted to
prefix='/usr'.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 37738e1cf..99e7fb69c 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -158,6 +158,7 @@ export -f ptxd_install_setup_src_list ptxd_install_setup_src() { local -a list + local legacy_src if [ "${src}" = "-" -a -n "${dst}" ]; then src="${pkg_pkg_dir}${dst}" @@ -165,6 +166,20 @@ ptxd_install_setup_src() { ptxd_install_setup || return + legacy_src="${src#/usr}" + if [ "${legacy_src}" != "${src}" ]; then + ptxd_install_setup_src_list "${legacy_src}" + if ptxd_get_path "${list[@]}"; then + local tmp + echo -e "\nFound file for '${dst}' in these legacy locations:\n" + for tmp in "${ptxd_reply[@]}"; do + echo "$(ptxd_print_path "${tmp}")" + done + echo + ptxd_bailout "They must be moved to the corresponding locations in '/usr'" + fi + fi + ptxd_install_setup_src_list "${src}" # Since the dependency to the source files is dynamic we store |