pck-update, test/*: update/add the code to check for the required external tools

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-05-20 22:30:07 +02:00
parent c85911f95b
commit 5bbd6b6ee3
5 changed files with 17 additions and 3 deletions

View File

@ -9,6 +9,9 @@ Changes in version 1.12.1
* conf/02-specfile-formatting-rules.conf - Davide Madrisan:
Update 'source0_name_structure' to allow *.tar.xz archives.
* test/*, pck-update - Davide Madrisan:
Update/add the code to check for the required external tools.
-------------------------------------------------------------------------------
Changes in version 1.12.0

View File

@ -310,7 +310,7 @@ fi
# check if all the needed tools are available
for tool in cat chmod cpio date file find fold ftp getopt grep \
mktemp objdump readlink rpm rpmbuild rpm2cpio sed seq sort strings; do
mktemp readlink rpm rpmbuild rpm2cpio sed seq sort strings; do
[ "$(type -p $tool)" ] ||
notify.error $"utility not found"": \`$tool'"
done

View File

@ -17,6 +17,12 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
fi
TEXTDOMAIN="test00_specsyntax"; export TEXTDOMAIN
# check if all the needed tools are available
for tool in cat file getopt grep sed; do
[ "$(type -p $tool)" ] ||
notify.error $"utility not found"": \`$tool'"
done
# function specfile.checksyntax()
# do some syntax checks in the specfile of the building package
# args:

View File

@ -18,8 +18,7 @@ fi
TEXTDOMAIN="test01_pkgquality"; export TEXTDOMAIN
# check if all the needed tools are available
for tool in cat chmod cpio date file find fold ftp getopt grep \
mktemp ldd objdump; do
for tool in file find getopt grep ls ldd; do
[ "$(type -p $tool)" ] ||
notify.error $"utility not found"": \`$tool'"
done

View File

@ -17,6 +17,12 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
fi
TEXTDOMAIN="test02_pkgsecurity"; export TEXTDOMAIN
# check if all the needed tools are available
for tool in file find getopt grep objdump sed; do
[ "$(type -p $tool)" ] ||
notify.error $"utility not found"": \`$tool'"
done
function alltests() {
# FIXME: add to 'po' file
notify.note " ${NOTE}"$"performing security checks""${NORM}""..."