X-Git-Url: http://git.silcnet.org/gitweb/?p=autodist.git;a=blobdiff_plain;f=apps%2Fautodist%2Fautodist.in;h=e4388ab0a4fb9fbc74b1af3485e12dec28556597;hp=517aae779c55401f42ae1d2437e4ae0d26de0442;hb=72e15be581fe84afacf876dbe775a1a6cc2bbca3;hpb=67726a30d2b68a24d1c51d5458e324c95ac4c835 diff --git a/apps/autodist/autodist.in b/apps/autodist/autodist.in index 517aae7..e4388ab 100755 --- a/apps/autodist/autodist.in +++ b/apps/autodist/autodist.in @@ -1182,6 +1182,15 @@ ad_parse_distribution() ad_fatal "Distribution '$1' is not declared" fi + # Get and enforce prereq version + prereq=`sed 's/^[ ]*//' < $distdir/$1 | grep -v "^#" \ + | grep "prereq " | cut -d' ' -f2- | sort | uniq` + if test '!' -z $prereq; then + if [[ $ver < $prereq ]]; then + ad_fatal "Autodist $prereq or newer is required for distribution $1" + fi + fi + # Get inherited inhs=`sed 's/^[ ]*//' < $distdir/$1 | grep -v "^#" \ | grep "inherit " | cut -d' ' -f2 | sort | uniq`