libs,tests: add a debug message saying that the file is being loaded

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-12-01 17:54:46 +01:00
parent 61b0a67504
commit 868c8b882a
11 changed files with 24 additions and 0 deletions

View File

@ -34,6 +34,10 @@ Changes in version 1.16.1
* lib/libapse.lib - Davide Madrisan:
Do not use the real paths of libspe.lib. Use @libdir@ instead.
+ update
* lib/*, tests/* - Davide Madrisan:
Add a debug message saying that the file is being loaded.
-------------------------------------------------------------------------------
Changes in version 1.16.0

View File

@ -27,6 +27,8 @@ libapse.lib: "$"library not found"": @libdir@/libtranslate.lib" 1>&2
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`libapse.lib'..."
# function apse.cmpversion()
# compare two version
# args:

View File

@ -20,6 +20,8 @@ libcfg.lib: "$"library not found"": @libdir@/libtranslate.lib" 1>&2
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`libcfg.lib'..."
# list of the configuration file(s)
default_cfg_list=(\
`ls /etc/@package@.conf /etc/@package@.d/*.conf \

View File

@ -14,6 +14,8 @@ libmsgmng.lib: "$"library not found"": @libdir@/libtranslate.lib" 1>&2
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`libmsgmng.lib'..."
# notify family of message handling functions:
# - notify.warning
# - notify.error

View File

@ -20,6 +20,8 @@ libnetwork.lib: "$"library not found"": @libdir@/libtranslate.lib" 1>&2
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`libnetwork.lib'..."
# check if all the needed tools are available
# note: 'host' has been removed from this list because the package
# bind-utils is not available in early stage platform development

View File

@ -20,6 +20,8 @@ libspec.lib: "$"library not found"": @libdir@/libtranslate.lib" 1>&2
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`libspec.lib'..."
# function boolexpr.solve
# calculate the boolean expression `$1' expanding the variables
# found in `rpmvar_name[]' and `define_list_name[]'

View File

@ -20,6 +20,8 @@ libtest.lib: "$"library not found"": @libdir@/libtranslate.lib" 1>&2
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`libtest.lib'..."
[ -n "$testdir" ] ||
notify.error "\`testdir': "$"unset in the configuration files"
[ -d "$testdir" ] ||

View File

@ -8,6 +8,8 @@ libtest_is_loaded=1
[ -z "$BASH" ] || [ ${BASH_VERSION:0:1} -lt 2 ] &&
{ echo $"this script requires bash version 2 or better" >&2 && exit 1; }
notify.debug $"loading"": \`libtranslate.lib'..."
if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG

View File

@ -18,6 +18,8 @@ me=("test00_specsyntax" "@version@" "@date@")
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`test00_specsyntax'..."
# check if all the needed tools are available
for tool in cat file getopt grep sed; do
[ "$(type -p $tool)" ] ||

View File

@ -18,6 +18,8 @@ me=("test01_pkgquality" "@version@" "@date@")
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`test01_pkgquality'..."
# check if all the needed tools are available
for tool in file find getopt grep ls ldd; do
[ "$(type -p $tool)" ] ||

View File

@ -18,6 +18,8 @@ me=("test02_pkgsecurity" "@version@" "@date@")
exit 1; }
. @libdir@/libtranslate.lib
notify.debug $"loading"": \`test02_pkgsecurity'..."
# check if all the needed tools are available
for tool in file find getopt grep objdump sed; do
[ "$(type -p $tool)" ] ||