From d66e2f6dd8865f51dc43c1d9a40812c698c1f9b1 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 8 Feb 2008 16:44:56 -0500 Subject: Working on script to help push code. --- pusher.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pusher.py') diff --git a/pusher.py b/pusher.py index a60958a..3a97a4b 100644 --- a/pusher.py +++ b/pusher.py @@ -32,10 +32,6 @@ import sys import glob import subprocess -# don't let koji poll for status -# NOTE: EPEL still uses plague -os.env["BUILD_FLAGS"] == "--nowait" - def run(cmd,failok=False): """ Wrapper around subprocess @@ -43,7 +39,7 @@ def run(cmd,failok=False): print "running: %s" % cmd rc = subprocess.call(cmd, shell=True) print "rc: %s" % rc - if failok and not rc: + if not failok and not rc == 0: croak("aborting") @@ -142,7 +138,7 @@ for x in PROCESS_RELEASES: print "cd into %s" % releasedir os.chdir(releasedir) rc = run("make tag") - rc = run("make build",failok=True) + rc = run("BUILD_FLAGS=\"--nowait\" make build",failok=True) print "---------------------------------------------" print "all done, assuming you didn't see anything weird" -- cgit