diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-04-07 13:38:24 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-04-07 14:34:20 +0200 |
commit | 8be7754124a4db958e64fac53c41f6cb826a8673 (patch) | |
tree | c3d90d9d165696c5f7876f2cd1cba5f746451ca9 | |
parent | 98b74f9c08906407bff0b3c97a94b70143495a04 (diff) | |
download | ptxdist-8be7754124a4db958e64fac53c41f6cb826a8673.tar.gz ptxdist-8be7754124a4db958e64fac53c41f6cb826a8673.tar.xz |
[ptxd_make_xpkg_pkg] ptxd_exist: test existance not for file
With the new "install_*" scheme introduced in commit
e76fdb80fac252594c03a0c462d59b5b7501e965, this doesn't work anymore:
@$(call install_copy, rootfs, 0, 0, 0644, /dev/null, /etc/resolv.conf, n)
This is a quick and easy method to create empty files.
This patch fixes the regression.
Reported-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Tested-by: Ladislav Michl <ladis@linux-mips.org>
(cherry picked from commit f51c81f85cbc691a22ddb505f2af378610a28934)
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 7812dfa91..058bdf650 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -10,7 +10,7 @@ ptxd_exist() { for file in "${@}"; do - if [ ! -f "${file}" ]; then + if [ ! -e "${file}" ]; then echo -e "\nError: file not found: ${file}\n" return 1 fi @@ -71,7 +71,7 @@ ptxd_install_setup_src() { fi for src in "${list[@]}"; do - if [ -f "${src}" ]; then + if [ -e "${src}" ]; then return fi done |