[Evolvis-commits] r204: maybe this will prevent the Evolvis theme from showing up twice↵ on upgrades from old machines where it was hand-installed ; also↵ gets rid of the other ancient , non-working themes from 4. 5 code↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Nov 5 16:12:42 CET 2009


Author: mirabilos
Date: 2009-11-05 15:12:42 +0000 (Thu, 05 Nov 2009)
New Revision: 204

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:
maybe this will prevent the Evolvis theme from showing up twice
on upgrades from old machines where it was hand-installed; also
gets rid of the other ancient, non-working themes from 4.5 code


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 15:08:46 UTC (rev 203)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/deb-specific/db-upgrade.pl	2009-11-05 15:12:42 UTC (rev 204)
@@ -2845,10 +2845,24 @@
     }
     
     $version = &get_db_version ;
-    $target = "4.8.1+evolvis-6" ;
+    $target = "4.8.1+evolvis-7" ;
     if (&is_lesser ($version, $target)) {
         &debug ("Updating available themes") ;
 
+	my @obsolete_themes = qw/ evolvis evolvis~ evolvis.BAK
+				  evolvis_old evolvis_repo
+				  evolvis_repo.old
+				/;
+
+	my $otids = join (',', map { "'$_'" } @obsolete_themes) ;
+	
+	$query = "UPDATE users SET theme_id=1 WHERE theme_id IN
+                     (SELECT theme_id FROM themes WHERE dirname IN ($otids))" ;
+	push @reqlist, $query;
+	
+	$query = "DELETE FROM themes WHERE dirname IN ($otids)" ;
+	push @reqlist, $query;
+
 	my %new_themes = (
 	    'evolvis'		  => 'Evolvis'
 	    ) ;

Modified: trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog	2009-11-05 15:08:46 UTC (rev 203)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog	2009-11-05 15:12:42 UTC (rev 204)
@@ -1,12 +1,11 @@
-gforge (4.8.1+evolvis-6) xunstable; urgency=low
+gforge (4.8.1+evolvis-7) xunstable; urgency=low
 
   * 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
-  * experimentally attempt to fix mediawiki permissions
+    comment out per-group overrides by default; fix permissions/groups
+  * integrate the evolvis theme automatically, obsolete old 4.5 ones
 
- -- Thorsten Glaser <tg at mirbsd.de>  Thu, 05 Nov 2009 15:08:31 +0100
+ -- Thorsten Glaser <tg at mirbsd.de>  Thu, 05 Nov 2009 16:11:24 +0100
 
 gforge (4.8.1+evolvis-5) unstable; urgency=low
 




More information about the evolvis-commits mailing list