}
DPUT_CF = os.path.join(GIT_TARGET_WORKSPACE, 'dput.cf')
+NO_UPLOAD = os.environ.get('NO_UPLOAD')
+
log_format = '%(asctime)s %(name)s[%(process)d] %(levelname)s: %(message)s'
formatter = Formatter(log_format)
logging.basicConfig(
fh = open(changes_file, 'r')
logger.info('%s' % (fh.read()))
fh.close()
- # upload
- dput_package_upload(changes_file)
+ # upload (if NO_UPLOAD is not set)
+ if NO_UPLOAD == "None":
+ dput_package_upload(changes_file)
except Exception, error:
logger.exception(error)
exit_error()