autospec: postpone the load of libcfg.lib
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
218df59a47
commit
bcfa07d7dc
@ -25,6 +25,11 @@ Fri Nov 09 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
|
||||
* templates/standard - Davide Madrisan:
|
||||
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
|
||||
|
@ -90,8 +90,6 @@ notify.disable_colors
|
||||
{ echo "$me: "$"library not found"": @libdir@/libcfg.lib" 1>&2
|
||||
exit 1; }
|
||||
|
||||
. @libdir@/libcfg.lib
|
||||
|
||||
for arg in $@; do
|
||||
case $arg in
|
||||
-u|--update)
|
||||
@ -130,6 +128,8 @@ case "$(( $pck_update + $spec_create + $pck_extract + $config_getvar ))" in
|
||||
*) autospec.usage 1 ;;
|
||||
esac
|
||||
|
||||
. @libdir@/libcfg.lib
|
||||
|
||||
[ "$logging" = "1" ] && let "colorize = 0"
|
||||
[ "$colorize" = "1" ] && notify.enable_colors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user