[evolvis-commits] r18695: be verbose (and sorted!) upgrading mediawiki DB, for the impatient…

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Oct 4 19:05:42 CEST 2012


Author: mirabilos
Date: 2012-10-04 19:05:42 +0200 (Thu, 04 Oct 2012)
New Revision: 18695

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
   trunk/gforge_base/evolvisforge-5.1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst
Log:
be verbose (and sorted!) upgrading mediawiki DB, for the impatient…

Modified: trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-10-04 16:00:11 UTC (rev 18694)
+++ trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-10-04 17:05:42 UTC (rev 18695)
@@ -28,8 +28,9 @@
   * [#2991] Display Open/Closed/Deleted mapping for custom status fields
   * [#3259] Extend JSON export by much more information
   * Fix custom status fields to allow all possible internal states
+  * Upgrading MediaWiki is now verbose and sorted by group unixname
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Thu, 04 Oct 2012 17:58:09 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Thu, 04 Oct 2012 18:53:28 +0200
 
 fusionforge (1:5.1.1+evolvis70.1) unstable; urgency=high
 

Modified: trunk/gforge_base/evolvisforge-5.1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst	2012-10-04 16:00:11 UTC (rev 18694)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst	2012-10-04 17:05:42 UTC (rev 18695)
@@ -10,11 +10,14 @@
 	mwenext "$1"
 }
 
-upgrade_mediawikis () {
-    # Upgrade Mediawiki database schemas
-    /usr/share/gforge/bin/list-projects-using-plugin.php mediawiki | while read i ; do
-	/usr/share/gforge/plugins/mediawiki/bin/mw-wrapper.php $i update.php --quick
-    done
+upgrade_mediawikis() {
+	# Upgrade Mediawiki database schemas
+	/usr/share/gforge/bin/list-projects-using-plugin.php mediawiki | \
+	    sort -u | while read i; do
+		echo "===> Upgrading MediaWiki for: $i"
+		/usr/share/gforge/plugins/mediawiki/bin/mw-wrapper.php \
+		    "$i" update.php --quick
+	done
 }
 
 case "$1" in



More information about the evolvis-commits mailing list