autospec: postpone the load of libcfg.lib

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-07 23:25:32 +01:00
parent 218df59a47
commit bcfa07d7dc
2 changed files with 7 additions and 2 deletions

View File

@ -25,6 +25,11 @@ Fri Nov 09 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
* templates/standard - Davide Madrisan: * templates/standard - Davide Madrisan:
Add a devel subpackage. Add a devel subpackage.
+ update
* autospec - Davide Madrisan:
Postpone the load of libcfg.lib to allow users to set a different
configuration file (will be done in a following patch).
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Changes in version 1.14.0 Changes in version 1.14.0

View File

@ -90,8 +90,6 @@ notify.disable_colors
{ echo "$me: "$"library not found"": @libdir@/libcfg.lib" 1>&2 { echo "$me: "$"library not found"": @libdir@/libcfg.lib" 1>&2
exit 1; } exit 1; }
. @libdir@/libcfg.lib
for arg in $@; do for arg in $@; do
case $arg in case $arg in
-u|--update) -u|--update)
@ -130,6 +128,8 @@ case "$(( $pck_update + $spec_create + $pck_extract + $config_getvar ))" in
*) autospec.usage 1 ;; *) autospec.usage 1 ;;
esac esac
. @libdir@/libcfg.lib
[ "$logging" = "1" ] && let "colorize = 0" [ "$logging" = "1" ] && let "colorize = 0"
[ "$colorize" = "1" ] && notify.enable_colors [ "$colorize" = "1" ] && notify.enable_colors