Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-13 22:31:29 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-13 22:31:29 (GMT)
commit56d609b7db7c7a2a1da5c95746c8c310e219c3df (patch)
treee5b69c0f3fd75fee9522acd53ac2ff065a5dac86
parent56eb7c2dc3989942980879d86bda6755378ced27 (diff)
Exit if distcheck fails.
-rwxr-xr-xmaint-helper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/maint-helper.py b/maint-helper.py
index 8c64ca2..e1bbe22 100755
--- a/maint-helper.py
+++ b/maint-helper.py
@@ -16,6 +16,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+# Latest source available at git://dev.laptop.org/sugar
+
import os
import sys
import re
@@ -64,7 +66,9 @@ def cmd_build_snapshot():
print 'Build %s...' % tarball
- os.spawnlp(os.P_WAIT, 'make', 'make', 'distcheck')
+ retcode = subprocess.call(['make', 'distcheck'])
+ if retcode:
+ sys.exit(0)
os.rename('%s-%s.tar.bz2' % (name, version), tarball)