From 956a5a6629fe3dc0a0d42ff439addac6a34209c8 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 3 Jan 2011 17:09:42 +0100 Subject: [ptxd_make_world_patchin] use ptxd_in_path to find patch dir Signed-off-by: Michael Olbrich --- scripts/lib/ptxd_make_world_patchin.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh index 57f7a610c..bbb749045 100644 --- a/scripts/lib/ptxd_make_world_patchin.sh +++ b/scripts/lib/ptxd_make_world_patchin.sh @@ -23,14 +23,12 @@ ptxd_make_world_patchin_apply_init() { # + # find patch_dir # for compatibility, look first in 'generic', then in standard # location # - local path="${PTXDIST_PATH_PATCHES//://${pkg_pkg}/generic } \ - ${PTXDIST_PATH_PATCHES//://${pkg_pkg} }" - - # find patch_dir - if ! ptxd_get_path "${path}"; then + if ! ptxd_in_path PTXDIST_PATH_PATCHES ${pkg_pkg}/generic && + ! ptxd_in_path PTXDIST_PATH_PATCHES ${pkg_pkg} ; then echo "patchin: no patches found" return fi -- cgit v1.2.3