This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.0 has been updated
via e68925ee36d607256f261bf405fcd572d0518059 (commit)
from 9a8ba0231d0b31474e01377e22582ebfbd0268cf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e68925ee36d607256f261bf405fcd572d0518059
Author: Franck Villaume <[email protected]>
Date: Wed May 6 17:50:11 2015 +0200
frs: fix zipfile on file update when file is moved to another release
diff --git a/src/common/frs/FRSFile.class.php b/src/common/frs/FRSFile.class.php
index 3d1c689..5735b6b 100644
--- a/src/common/frs/FRSFile.class.php
+++ b/src/common/frs/FRSFile.class.php
@@ -452,6 +452,12 @@ class FRSFile extends Error {
if
(isset($this->FRSRelease->release_files[$this->getID()])) {
unset($this->FRSRelease->release_files[$this->getID()]);
}
+
+ // regenerate ZIP
+ if
(!$FRSRelease->FRSPackage->createReleaseFilesAsZip($FRSRelease->getID())) {
+
$this->setError($FRSRelease->FRSPackage->getErrorMessage());
+ return false;
+ }
}
if
($this->FRSRelease->FRSPackage->createReleaseFilesAsZip($this->FRSRelease->getID()))
{
-----------------------------------------------------------------------
Summary of changes:
src/common/frs/FRSFile.class.php | 6 ++++++
1 file changed, 6 insertions(+)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits