[Koha-patches] [PATCH] added c flag that means that debian is still configured. it bypass
Marc Chantreux
marc.chantreux at biblibre.com
Thu May 22 14:48:41 CEST 2008
---
install_misc/install_koha_on_fresh_debian | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/install_misc/install_koha_on_fresh_debian b/install_misc/install_koha_on_fresh_debian
index 43c8f4e..04d54e9 100644
--- a/install_misc/install_koha_on_fresh_debian
+++ b/install_misc/install_koha_on_fresh_debian
@@ -340,9 +340,11 @@ fi
# parsing arguments {{{
# TODO: document it
+# TODO: this won't work with real bourne shell (use expr instead)
if [ "$1" ]; then
[ "$1" = *b* ] && GET_KOHA_SRC_METHOD=beta
[ "$1" = *t* ] && GET_KOHA_SRC_METHOD=tar
+ [ "$1" = *c* ] && DEBIAN_STILL_CONFIGURED=yes
fi
# TODO: remove it ?
@@ -394,10 +396,14 @@ verify_etch_sources () {
cd "$KOHA_SRC_DIR"
[ "$PLEASE_DONT_GET" ] ||
get_koha_sources "$KOHA_SRC_BASE" "$GET_KOHA_SRC_METHOD" > $GET_KOHA_LOG 2>&1 &
-configure_indexdata_sources # to install yaz and iezebra
-configure_lenny # because etch lacks some packages
-configure_aptitude_correctly # to solve dependancies and conflicts
-verify_etch_sources
+
+[ $DEBIAN_STILL_CONFIGURED ] || {
+ configure_indexdata_sources # to install yaz and iezebra
+ configure_lenny # because etch lacks some packages
+ configure_aptitude_correctly # to solve dependancies and conflicts
+ verify_etch_sources
+}
+
# update the system
aptitude update
aptitude upgrade
--
1.5.5.1
More information about the Koha-patches
mailing list