Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
cb4b6ab3
Commit
cb4b6ab3
authored
Oct 27, 2019
by
André Anjos
💬
Browse files
[scripts.mirror] Set tempfile's tempdir variable to the temporary directory just created
parent
b0446b08
Pipeline
#34726
passed with stages
in 3 minutes and 42 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
bob/devtools/scripts/mirror.py
View file @
cb4b6ab3
...
...
@@ -126,8 +126,9 @@ def mirror(
# creates a self destructing temporary directory that will act as temporary
# directory for the rest of this program
tmpdir2
=
tempfile
.
TemporaryDirectory
(
prefix
=
'bdt-mirror-tmp'
,
dir
=
tmpdir
)
tempfile
.
tempdir
=
tmpdir2
.
name
os
.
environ
[
'TMPDIR'
]
=
tmpdir2
.
name
logger
.
info
(
'Setting $TMPDIR to %s'
,
tmpdir2
.
name
)
logger
.
info
(
'Setting $TMPDIR
and `tempfile.tempdir`
to %s'
,
tmpdir2
.
name
)
# if we are in a dry-run mode, let's let it be known
if
dry_run
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment