Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Remko van der Vossen (61f10639fe5986a83ca9da7abab414a1d5b50ba3)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Remko van der Vossen <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Remko van der Vossen (61f10639fe5986a83ca9da7abab414a1d5b50ba3)
  • Date: Thu, 17 Jul 2008 13:35:54 -0500

GIT changes to master grimoire by Remko van der Vossen <wich AT stack.nl>:

database/postgresql/CONFIGURE | 19 ++++++++++---------
database/postgresql/HISTORY | 1 +
2 files changed, 11 insertions(+), 9 deletions(-)

New commits:
commit 61f10639fe5986a83ca9da7abab414a1d5b50ba3
Author: Remko van der Vossen <wich AT stack.nl>
Commit: Remko van der Vossen <wich AT stack.nl>

postgresql: only query when changing major version.

diff --git a/database/postgresql/CONFIGURE b/database/postgresql/CONFIGURE
index 9aea02e..16a101c 100755
--- a/database/postgresql/CONFIGURE
+++ b/database/postgresql/CONFIGURE
@@ -1,13 +1,14 @@
-if spell_ok $SPELL && [[ $(installed_version $SPELL) != $VERSION ]]; then
+OLDVERSION=$(installed_version $SPELL)
+if spell_ok $SPELL && [[ ${OLDVERSION%.*} != ${VERSION%.*} ]]; then
message "${PROBLEM_COLOR}" &&
- message "You are about to upgrade (downgrade) your PostgreSQL
installation, please" &&
- message "be aware that a database repository will only work with a
specific version" &&
- message "of PostgreSQL. You need to make a dump of your entire database
system, create" &&
- message "a new repository with the new PostgreSQL version and import your
dump. You" &&
- message "should not continue with this upgrade (downgrade) if you do not
have a dump" &&
- message "of your database system. If you need help creating a dump of your
database" &&
- message "system see the PostgreSQL HOWTO
(http://wiki.sourcemage.org/HOWTO-Postgresql)" &&
- message "for instructions." &&
+ message "You are about to upgrade (downgrade) your PostgreSQL installation
to a" &&
+ message "different major version, please be aware that a database
repository will only" &&
+ message "work with a specific major version of PostgreSQL. You need to
make a dump of" &&
+ message "your entire database system, create a new repository with the new
PostgreSQL" &&
+ message "version and import your dump. You should not continue with this
upgrade" &&
+ message "(downgrade) if you do not have a dump of your database system. If
you need" &&
+ message "help creating a dump of your database system see the PostgreSQL
HOWTO at" &&
+ message "(http://wiki.sourcemage.org/HOWTO-Postgresql) for instructions."
&&
message "${DEFAULT_COLOR}" &&
if ! query "Do you wish to upgrade PostgreSQL now?" n; then
return 1
diff --git a/database/postgresql/HISTORY b/database/postgresql/HISTORY
index 06d8434..27b4a34 100644
--- a/database/postgresql/HISTORY
+++ b/database/postgresql/HISTORY
@@ -2,6 +2,7 @@
* CONFIGURE: Warn the user they need to have a dump of their database
system when upgrading (downgrading) and query the user whether they
want to continue casting.
+ * CONFIGURE: Update: only query when changing major version.
* INSTALL, FINAL: Moved messages to FINAL so that they will appear
after
staging the install into the system, otherwise the messages just get
lost in the stream of text scrolling by when staged install is



  • [SM-Commit] GIT changes to master grimoire by Remko van der Vossen (61f10639fe5986a83ca9da7abab414a1d5b50ba3), Remko van der Vossen, 07/17/2008

Archive powered by MHonArc 2.6.24.

Top of Page