summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-06-11 14:30:13 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-06-11 14:44:14 +0200
commite2427ae908a7b58fcd4e568cc98fea17d6f03a5e (patch)
tree4bde4c37ca84b29d5ace811de6410c17eecb09be /bin
parentcbfb815cd8b1c0214348756822f5fd6d6b6c5de1 (diff)
downloadptxdist-e2427ae908a7b58fcd4e568cc98fea17d6f03a5e.tar.gz
ptxdist-e2427ae908a7b58fcd4e568cc98fea17d6f03a5e.tar.xz
[ptxdist] fix version check, bail out if using two incompatible releases
This patch fixes a problem with the version check. ptxdist should refuse to build a BSP() made for a different ptxdist release. Without this patch ptxdist will build a BSP for 2010.04.0 with ptxdist 2010.05.0. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index fda077008..71ec41c35 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -224,7 +224,7 @@ check_version() {
#
# If not the developer has to fix it :P
#
- if [ "${PTXDIST_VERSION_SCM:+-git}" = "${config_scm:+-git}" ]; then
+ if [ -n "${PTXDIST_VERSION_SCM}" -a -n "${config_scm}" ]; then
return 0
fi