From 868c8b882a607dfb3869632ef4f5e660fb326cbd Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 1 Dec 2012 17:54:46 +0100 Subject: [PATCH] libs,tests: add a debug message saying that the file is being loaded Signed-off-by: Davide Madrisan --- ChangeLog | 4 ++++ lib/libapse.lib.in | 2 ++ lib/libcfg.lib.in | 2 ++ lib/libmsgmng.lib.in | 2 ++ lib/libnetwork.lib.in | 2 ++ lib/libspec.lib.in | 2 ++ lib/libtest.lib.in | 2 ++ lib/libtranslate.lib.in | 2 ++ tests/test00_specsyntax.in | 2 ++ tests/test01_pkgquality.in | 2 ++ tests/test02_pkgsecurity.in | 2 ++ 11 files changed, 24 insertions(+) diff --git a/ChangeLog b/ChangeLog index 837451e..58a294d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/lib/libapse.lib.in b/lib/libapse.lib.in index 7bbb315..8855b92 100644 --- a/lib/libapse.lib.in +++ b/lib/libapse.lib.in @@ -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: diff --git a/lib/libcfg.lib.in b/lib/libcfg.lib.in index 699b69c..e27f42e 100644 --- a/lib/libcfg.lib.in +++ b/lib/libcfg.lib.in @@ -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 \ diff --git a/lib/libmsgmng.lib.in b/lib/libmsgmng.lib.in index ba1e17c..2e18290 100644 --- a/lib/libmsgmng.lib.in +++ b/lib/libmsgmng.lib.in @@ -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 diff --git a/lib/libnetwork.lib.in b/lib/libnetwork.lib.in index 9637ac0..2c5db5d 100644 --- a/lib/libnetwork.lib.in +++ b/lib/libnetwork.lib.in @@ -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 diff --git a/lib/libspec.lib.in b/lib/libspec.lib.in index 72ca505..264d9f4 100644 --- a/lib/libspec.lib.in +++ b/lib/libspec.lib.in @@ -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[]' diff --git a/lib/libtest.lib.in b/lib/libtest.lib.in index 2d1b3ac..ca34e35 100644 --- a/lib/libtest.lib.in +++ b/lib/libtest.lib.in @@ -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" ] || diff --git a/lib/libtranslate.lib.in b/lib/libtranslate.lib.in index 6322928..25e5748 100644 --- a/lib/libtranslate.lib.in +++ b/lib/libtranslate.lib.in @@ -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 diff --git a/tests/test00_specsyntax.in b/tests/test00_specsyntax.in index 120cf03..dd680ab 100644 --- a/tests/test00_specsyntax.in +++ b/tests/test00_specsyntax.in @@ -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)" ] || diff --git a/tests/test01_pkgquality.in b/tests/test01_pkgquality.in index 13848c5..481bc72 100644 --- a/tests/test01_pkgquality.in +++ b/tests/test01_pkgquality.in @@ -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)" ] || diff --git a/tests/test02_pkgsecurity.in b/tests/test02_pkgsecurity.in index 6bff201..1841bbe 100644 --- a/tests/test02_pkgsecurity.in +++ b/tests/test02_pkgsecurity.in @@ -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)" ] ||