Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 5421137

Browse files
authored
Merge pull request #32 from edmorley/clearer-tmpfile-names
Use clearer file and directory names for build output
2 parents 04cc84c + 9df32fa commit 5421137

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bob/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def resolve_deps(self):
113113
sys.exit(1)
114114

115115
# Grab the Dep from S3, download it to a temp file.
116-
archive = mkstemp()[1]
116+
archive = mkstemp(prefix='bob-dep-', suffix='.tar.gz')[1]
117117
key.get_contents_to_filename(archive)
118118

119119
# Extract the Dep to the appropriate location.
@@ -130,7 +130,7 @@ def build(self):
130130
self.resolve_deps()
131131

132132
# Temporary directory where work will be carried out, because of David.
133-
cwd_path = mkdtemp(prefix='bob')
133+
cwd_path = mkdtemp(prefix='bob-')
134134

135135
print('Building formula {} in {}:\n'.format(self.path, cwd_path))
136136

@@ -149,7 +149,7 @@ def build(self):
149149

150150
def archive(self):
151151
"""Archives the build directory as a tar.gz."""
152-
archive = mkstemp()[1]
152+
archive = mkstemp(prefix='bob-build-', suffix='.tar.gz')[1]
153153
archive_tree(self.build_path, archive)
154154

155155
print('Created: {}'.format(archive))

0 commit comments

Comments
 (0)