Skip to content

Commit 3bb8dd7

Browse files
committed
must replace actual file
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
1 parent 8678357 commit 3bb8dd7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

singularity/build/google/instances.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ def run_build(logfile='/tmp/.shub-log'):
133133
# The finished recipe must be called Singularity
134134
recipe_upload = os.path.join(build_dir, "Singularity")
135135
spec_file = os.path.join(build_dir, params['spec_file'])
136-
if not os.path.exists(recipe_upload):
137-
shutil.move(spec_file, recipe_upload)
136+
shutil.move(spec_file, recipe_upload)
138137

139138
build_files = [finished_image, recipe_upload]
140139
bot.info("Sending image to storage:")

singularity/build/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def run_build(build_dir, params, verbose=True):
7171
os.chdir(build_dir)
7272

7373
if params['branch'] is not None:
74-
bot.info('Checking out branch %s' %params['branch'])
75-
os.system('git checkout %s' %(params['branch']))
74+
bot.info('Checking out branch %s' % params['branch'])
75+
os.system('git checkout %s' % params['branch'])
7676
else:
7777
params['branch'] = "master"
7878

@@ -216,10 +216,10 @@ def send_build_data(build_dir, data, secret,
216216
payload=body,
217217
request_type="push")
218218

219-
headers = {'Authorization': signature }
219+
headers = {'Authorization': signature}
220220

221221
if response_url is not None:
222-
finish = requests.post(response_url,data=data, headers=headers)
222+
finish = requests.post(response_url, data=data, headers=headers)
223223
bot.debug("RECEIVE POST TO SINGULARITY HUB ---------------------")
224224
bot.debug(finish.status_code)
225225
bot.debug(finish.reason)

0 commit comments

Comments
 (0)