New commits:
commit 52b245813ee2d999a7526a7804ca0dcda41f758c
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libstage:
fixed a regression that caused us not to install excluded configs #14339
commit 9fdaa903b22a2d8c0a86051dea220df18df0e8db
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libstage: install the rest of the files first, so any leading directories
the configs need get properly created; renamed stage_install_rest to
stage_install_ordinary
diff --git a/ChangeLog b/ChangeLog
index 0662597..a0a19c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
* libqueue: made the old method print all the reasons for queuing.
This
way the behaviour is consistent with the new method and
multiversioned
spells have all the reasons printed
+ * libstage: install the rest of the files first, so any leading
directories
+ the configs need get properly created; renamed stage_install_rest to
+ stage_install_ordinary
+ fixed a regression that caused us not to install excluded configs
#14339
function filter_spell_configs()
@@ -25,23 +25,31 @@ function filter_spell_configs()
}
#---------------------------------------------------------------------
-## Install config files to a staged location on the system
+## Install config files to a staged location on the system or if
+## they are also excluded, just install them normally.
#---------------------------------------------------------------------
function stage_install_configs()
{
+ local spell_configs=$(get_all_package_files | filter_spell_configs -v)
+
+ # install excluded configs as ordinary files - do not stage them
+ message "${MESSAGE_COLOR}Installing excluded config files${DEFAULT_COLOR}"
+ echo "$spell_configs" |
+ filter_excluded -v |
+ stage_install_files
+
message "${MESSAGE_COLOR}Staging config files into the
system${DEFAULT_COLOR}"
- get_all_package_files |
- filter_spell_configs -v |
- filter_excluded |
+ echo "$spell_configs" |
+ filter_excluded |
stage_install_files config
}
#---------------------------------------------------------------------
-## Install the rest of the files in the stage root
+## Install non-configs in the stage root
#---------------------------------------------------------------------
-function stage_install_rest()
+function stage_install_ordinary()
{
- message "${MESSAGE_COLOR}Installing the rest of the files${DEFAULT_COLOR}"
+ message "${MESSAGE_COLOR}Installing ordinary files${DEFAULT_COLOR}"
get_all_package_files |
filter_spell_configs |
stage_install_files
[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (52b245813ee2d999a7526a7804ca0dcda41f758c),
Jaka Kranjc, 07/05/2008