Improve the way out of date modules are detected

This commit is contained in:
Jamie Cameron
2007-11-07 01:15:31 +00:00
parent 9f95ee5a3a
commit 3e2b0fa308
3 changed files with 6 additions and 1 deletions

View File

@@ -9,3 +9,4 @@ desc_ru_RU=
longdesc=Configure the multi-protocol Jabber messaging server.
cpan=1
os_support=!windows
nondefault=1

View File

@@ -10,3 +10,4 @@ desc_ru_RU=
longdesc=Configure the portsentry, hostsentry and logcheck system security monitoring programs.
readonly=1
os_support=!windows
nondefault=1

View File

@@ -77,7 +77,10 @@ fi
# Validate source directory
allmods=`cd "$srcdir"; echo */module.info | sed -e 's/\/module.info//g'`
defaultallmods=`cd "$srcdir"; echo */module.info | grep -v jabber/module.info | grep -v sentry/module.info | sed -e 's/\/module.info//g'`
defaultallmods=`cd "$srcdir"; echo */module.info | xargs grep -L nondefault=1 2>/dev/null | sed -e 's/\/module.info//g'`
if [ "$defaultallmods" = "" ]; then
defaultallmods="$allmods"
fi
if [ "$allmods" = "" ]; then
echo "ERROR: Failed to get module list"
echo ""