import datetime
import platform
import subprocess
+import time
from glob import glob
from ftplib import FTP
from lib import git_helper
# upload
dput_package_upload(changes_file)
# build oot binary modules for all defined flavours
+ logger.info('Sleeping for 60 sec. so reprepro can process upload....')
+ time.sleep(60) # give reprepro time to process
FLAVOURS_FILE=os.path.join(GIT_TARGET_WORKSPACE, GIT_REPO_NAME, "debian/pb_flavours")
fh = open(FLAVOURS_FILE, 'r')
for flavour in fh.read():
'%s' % flavour,
'%s' % options.distribution,
'%s' % pb_suite ]
- logger.info('calling %s' % cmd)
- subprocess.check_call(cmd)
+ cmdobj = subprocess.Popen(
+ cmd,
+ shell=False,
+ close_fds=True,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ env=os.environ
+ )
+ logger.info('calling "%s" ...', ' '.join(cmd))
+ ret = os.system('%s' %(' '.join(cmd)))
+ if ret:
+ logger.error(
+ '"%s" returned non-zero (exitcode was: %s).',
+ ' '.join(cmd),
+ ret,
+ )
+ return False
fh.close()
exit_ok()
except Exception, error: