Author: david
Date: Tue Nov 9 10:05:31 2010
New Revision: 8807
Log:
throw exception on stderr
Modified:
trunk/lib/task/ReleaseTask.class.php
Modified: trunk/lib/task/ReleaseTask.class.php
==============================================================================
--- trunk/lib/task/ReleaseTask.class.php Tue Nov 9 09:29:12 2010
(r8806)
+++ trunk/lib/task/ReleaseTask.class.php Tue Nov 9 10:05:31 2010
(r8807)
@@ -161,7 +161,13 @@
$doc->save($packageXmlPath);
- print implode('', $this->getFilesystem()->execute('pear package'));
+ list($stdout, $stderr) = $this->getFilesystem()->execute('pear package')
+ if (0 < strlen($stderr))
+ {
+ throw new Exception("Pear error: $stderr");
+ }
+
+ print $stdout;
$this->getFilesystem()->remove($packageXmlPath);
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.