Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
infra
packages
Commits
cbb9a787
Commit
cbb9a787
authored
Jan 07, 2019
by
Robin Sonnabend
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix chdir in loop
parent
d04deddb
Pipeline
#578
passed with stage
in 11 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
scripts/build.py
scripts/build.py
+2
-4
No files found.
scripts/build.py
View file @
cbb9a787
...
...
@@ -67,17 +67,15 @@ def build_package(repo_dir, package_dir, name,
workdir
=
os
.
path
.
join
(
tempdir
,
pkg_dir
)
print
(
"Content of tempdir:"
,
os
.
listdir
(
work
dir
))
print
(
"Content of tempdir:"
,
os
.
listdir
(
temp
dir
))
print
(
"Content of workdir:"
,
os
.
listdir
(
workdir
))
if
additional_content
is
not
None
:
print
(
"applying additional content"
)
os
.
chdir
(
workdir
)
for
content
in
additional_content
:
target_dir
=
content
[
"target_dir"
]
print
(
"applying"
,
content
,
"in"
,
target_dir
)
os
.
listdir
(
target_dir
)
os
.
chdir
(
target_dir
)
os
.
chdir
(
os
.
path
.
join
(
workdir
,
target_dir
))
if
"patch_dir"
in
content
:
abs_patch_dir
=
os
.
path
.
join
(
repo_dir
,
content
[
"patch_dir"
])
...
...
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