[Evolvis-commits] r197: 12: 55⎜ [[Lo-lan-do]] It' s used for first install too :-) ↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Nov 5 14:53:19 CET 2009


Author: mirabilos
Date: 2009-11-05 13:53:18 +0000 (Thu, 05 Nov 2009)
New Revision: 197

Modified:
   trunk/gforge_base/gforge-4.8.1+evolvis/deb-specific/db-upgrade.pl
   trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog
Log:
12:55⎜[[Lo-lan-do]] It's used for first install too :-)


Modified: trunk/gforge_base/gforge-4.8.1+evolvis/deb-specific/db-upgrade.pl
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/deb-specific/db-upgrade.pl	2009-11-05 13:46:17 UTC (rev 196)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/deb-specific/db-upgrade.pl	2009-11-05 13:53:18 UTC (rev 197)
@@ -2844,6 +2844,34 @@
       $dbh->commit () ;
     }
     
+    $version = &get_db_version ;
+    $target = "4.8.1+evolvis-6" ;
+    if (&is_lesser ($version, $target)) {
+        &debug ("Updating available themes") ;
+
+	my %new_themes = (
+	    'evolvis'		  => 'Evolvis'
+	    ) ;
+
+	foreach my $dir (sort keys %new_themes) {
+	    $query = "INSERT INTO themes (dirname, fullname) VALUES ('$dir', '$new_themes{$dir}')" ;
+	    push @reqlist, $query;
+	}
+
+	foreach my $s (@reqlist) {
+	    $query = $s ;
+	    # &debug ($query) ;
+	    $sth = $dbh->prepare ($query) ;
+	    $sth->execute () ;
+	    $sth->finish () ;
+	}
+	@reqlist = () ;
+
+        &update_db_version ($target) ;
+        &debug ("Committing.") ;
+        $dbh->commit () ;
+    }
+
     ########################### INSERT HERE #################################
 
     &debug ("It seems your database $action went well and smoothly. That's cool.") ;

Modified: trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog	2009-11-05 13:46:17 UTC (rev 196)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog	2009-11-05 13:53:18 UTC (rev 197)
@@ -3,8 +3,9 @@
   * re-enable project list
   * mediawiki plugin: allow permissions to be set globally via local.inc,
     comment out per-group overrides by default
+  * integrate the evolvis theme automatically
 
- -- Thorsten Glaser <tg at mirbsd.de>  Thu, 05 Nov 2009 14:44:59 +0100
+ -- Thorsten Glaser <tg at mirbsd.de>  Thu, 05 Nov 2009 14:52:31 +0100
 
 gforge (4.8.1+evolvis-5) unstable; urgency=low
 




More information about the evolvis-commits mailing list