[Fusionforge-commits] r8010 - in trunk/gforge/plugins: scmbzr/common scmcpold/common scmcvs/common scmdarcs/common scmsvn/common

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Aug 27 15:44:22 CEST 2009


Author: lolando
Date: 2009-08-27 15:44:22 +0200 (Thu, 27 Aug 2009)
New Revision: 8010

Modified:
   trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php
   trunk/gforge/plugins/scmcpold/common/CpoldPlugin.class.php
   trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php
   trunk/gforge/plugins/scmdarcs/common/DarcsPlugin.class.php
   trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php
Log:
Fixed logic for deletion of snapshots/tarballs

Modified: trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php	2009-08-27 13:44:10 UTC (rev 8009)
+++ trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php	2009-08-27 13:44:22 UTC (rev 8010)
@@ -132,8 +132,11 @@
 		$snapshot = $sys_scm_snapshots_path.'/'.$group_name.'-scm-latest.tar.gz';
 		$tarball = $sys_scm_tarballs_path.'/'.$group_name.'-scmroot.tar.gz';
 
-		if (! $project->usesPlugin ($this->name)
-		    || ! $project->enableAnonSCM()) {
+		if (! $project->usesPlugin ($this->name)) {
+			return false;
+		}
+
+		if (! $project->enableAnonSCM()) {
 			unlink ($snapshot) ;
 			unlink ($tarball) ;
 			return false;

Modified: trunk/gforge/plugins/scmcpold/common/CpoldPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmcpold/common/CpoldPlugin.class.php	2009-08-27 13:44:10 UTC (rev 8009)
+++ trunk/gforge/plugins/scmcpold/common/CpoldPlugin.class.php	2009-08-27 13:44:22 UTC (rev 8010)
@@ -116,8 +116,11 @@
 
 		$tarball = $sys_scm_tarballs_path.'/'.$group_name.'-scmroot.tar.gz';
 
-		if (! $project->usesPlugin ($this->name)
-		    || ! $project->enableAnonSCM()) {
+		if (! $project->usesPlugin ($this->name)) {
+			return false;
+		}
+
+		if (! $project->enableAnonSCM()) {
 			unlink ($tarball) ;
 			return false;
 		}

Modified: trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php	2009-08-27 13:44:10 UTC (rev 8009)
+++ trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php	2009-08-27 13:44:22 UTC (rev 8010)
@@ -370,8 +370,11 @@
 		$snapshot = $sys_scm_snapshots_path.'/'.$group_name.'-scm-latest.tar.gz';
 		$tarball = $sys_scm_tarballs_path.'/'.$group_name.'-scmroot.tar.gz';
 
-		if (! $project->usesPlugin ($this->name)
-		    || ! $project->enableAnonSCM()) {
+		if (! $project->usesPlugin ($this->name)) {
+			return false;
+		}
+
+		if (! $project->enableAnonSCM()) {
 			unlink ($snapshot) ;
 			unlink ($tarball) ;
 			return false;

Modified: trunk/gforge/plugins/scmdarcs/common/DarcsPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmdarcs/common/DarcsPlugin.class.php	2009-08-27 13:44:10 UTC (rev 8009)
+++ trunk/gforge/plugins/scmdarcs/common/DarcsPlugin.class.php	2009-08-27 13:44:22 UTC (rev 8010)
@@ -104,8 +104,11 @@
 
 		$tarball = $sys_scm_tarballs_path.'/'.$group_name.'-scmroot.tar.gz';
 
-		if (! $project->usesPlugin ($this->name)
-		    || ! $project->enableAnonSCM()) {
+		if (! $project->usesPlugin ($this->name)) {
+			return false;
+		}
+
+		if (! $project->enableAnonSCM()) {
 			unlink ($tarball) ;
 			return false;
 		}

Modified: trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php	2009-08-27 13:44:10 UTC (rev 8009)
+++ trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php	2009-08-27 13:44:22 UTC (rev 8010)
@@ -340,8 +340,11 @@
 		$snapshot = $sys_scm_snapshots_path.'/'.$group_name.'-scm-latest.tar.gz';
 		$tarball = $sys_scm_tarballs_path.'/'.$group_name.'-scmroot.tar.gz';
 
-		if (! $project->usesPlugin ($this->name)
-		    || ! $project->enableAnonSCM()) {
+		if (! $project->usesPlugin ($this->name)) {
+			return false;
+		}
+
+		if (! $project->enableAnonSCM()) {
 			unlink ($snapshot) ;
 			unlink ($tarball) ;
 			return false;




More information about the Fusionforge-commits mailing list