summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_check_src.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-09-22 14:47:24 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-09-22 14:47:24 +0200
commit869c9107404d6976442ea3f2e3fac44727e617e4 (patch)
tree04b1f2919dc577b788f24350a76cc1784959ee0a /scripts/lib/ptxd_make_world_check_src.sh
parentd029cde21f8c84d33686b2356fcb08517a84ae20 (diff)
downloadptxdist-869c9107404d6976442ea3f2e3fac44727e617e4.tar.gz
ptxdist-869c9107404d6976442ea3f2e3fac44727e617e4.tar.xz
ptxd_make_world_update_md5: follow symlinks when updating md5sums
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_check_src.sh')
-rw-r--r--scripts/lib/ptxd_make_world_check_src.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_check_src.sh b/scripts/lib/ptxd_make_world_check_src.sh
index 2dc118000..fa89ec548 100644
--- a/scripts/lib/ptxd_make_world_check_src.sh
+++ b/scripts/lib/ptxd_make_world_check_src.sh
@@ -58,6 +58,7 @@ ptxd_make_world_update_md5() {
local PKG_MD5="PTXCONF_${PKG}_MD5"
for conf in "${PTXDIST_PLATFORMCONFIG}" "${PTXDIST_PTXCONFIG}"; do
+ conf="$(readlink -f "${conf}")"
if [ $(grep "^${PKG_MD5}=\"" "${conf}" 2> /dev/null | wc -l) = 1 ]; then
sed -i "s/^${PKG_MD5}=\".*$/${PKG_MD5}=\"${md5}\"/" "${conf}"
ptxd_warning "New checksum for ${pkg_label}: ${md5} in $(ptxd_print_path "${conf}")"
@@ -68,7 +69,7 @@ ptxd_make_world_update_md5() {
if ! ptxd_find_pkg_makefile "${pkg_label}"; then
ptxd_bailout "Could not update md5sum for '${pkg_label}': makefile not found"
else
- makefile="${ptxd_reply}"
+ makefile="$(readlink -f "${ptxd_reply}")"
fi
local count=$(grep "\<${PKG}_MD5[ ]*:=" "${makefile}" 2> /dev/null | wc -l)
if [ "${count}" -gt 1 ]; then