[Fusionforge-commits] r14197 - trunk/src/debian/dsf-in

Olivier Berger olberger at fusionforge.org
Tue Aug 23 17:39:30 CEST 2011


Author: olberger
Date: 2011-08-23 17:39:30 +0200 (Tue, 23 Aug 2011)
New Revision: 14197

Modified:
   trunk/src/debian/dsf-in/plugin.postinst
   trunk/src/debian/dsf-in/plugin.prerm
Log:
workaround the projects name containing dashes preventing plugin registration

Modified: trunk/src/debian/dsf-in/plugin.postinst
===================================================================
--- trunk/src/debian/dsf-in/plugin.postinst	2011-08-23 12:43:51 UTC (rev 14196)
+++ trunk/src/debian/dsf-in/plugin.postinst	2011-08-23 15:39:30 UTC (rev 14197)
@@ -30,7 +30,7 @@
 	then
 		/usr/share/@OLDPACKAGE@/plugins/@PLUGSHORTNAME@/bin/db-upgrade.pl
 	fi
-	/usr/share/@OLDPACKAGE@/bin/register-plugin @PLUGSHORTNAME@ "@PLUGLONGNAME@"
+	/usr/share/@OLDPACKAGE@/bin/register-plugin $(echo @PLUGSHORTNAME@ | sed 's/-//g') "@PLUGLONGNAME@"
 	# Restart apache if there is some change in config
 	if [ -f /etc/gforge/httpd.conf.d/plugin- at PLUGSHORTNAME@.inc ]
 	then

Modified: trunk/src/debian/dsf-in/plugin.prerm
===================================================================
--- trunk/src/debian/dsf-in/plugin.prerm	2011-08-23 12:43:51 UTC (rev 14196)
+++ trunk/src/debian/dsf-in/plugin.prerm	2011-08-23 15:39:30 UTC (rev 14197)
@@ -21,7 +21,7 @@
     remove|deconfigure)
 	if [ -f /var/run/postgresql/.s.PGSQL.5432 ]
 	then
-		/usr/share/@OLDPACKAGE@/bin/unregister-plugin @PLUGSHORTNAME@
+		/usr/share/@OLDPACKAGE@/bin/unregister-plugin $(echo @PLUGSHORTNAME@ | sed 's/-//g')
 		if [ -f /usr/share/@OLDPACKAGE@/plugins/@PLUGSHORTNAME@/bin/db-delete.pl ]
 		then
 			/usr/share/@OLDPACKAGE@/plugins/@PLUGSHORTNAME@/bin/db-delete.pl




More information about the Fusionforge-commits mailing list