Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
packages
Commits
d04deddb
Commit
d04deddb
authored
Jan 07, 2019
by
Robin Sonnabend
Browse files
More debug output
parent
486475b4
Pipeline
#577
failed with stage
in 6 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/build.py
View file @
d04deddb
...
...
@@ -63,19 +63,21 @@ def build_package(repo_dir, package_dir, name,
"Extracted package {} is not expected package {}"
.
format
(
pkg_name
,
name
))
print
(
"Extracted name"
,
pkg_dir
,
pkg_name
)
workdir
=
os
.
path
.
join
(
tempdir
,
pkg_dir
)
os
.
chdir
(
workdir
)
print
(
os
.
listdir
())
print
(
"Content of tempdir:"
,
os
.
listdir
(
workdir
))
print
(
"Content of workdir:"
,
os
.
listdir
(
workdir
))
if
additional_content
is
not
None
:
print
(
"applying additional content"
)
os
.
chdir
(
workdir
)
print
(
os
.
listdir
())
for
content
in
additional_content
:
print
(
"applying {}"
.
format
(
content
))
os
.
chdir
(
content
[
"target_dir"
])
print
(
os
.
listdir
())
target_dir
=
content
[
"target_dir"
]
print
(
"applying"
,
content
,
"in"
,
target_dir
)
os
.
listdir
(
target_dir
)
os
.
chdir
(
target_dir
)
if
"patch_dir"
in
content
:
abs_patch_dir
=
os
.
path
.
join
(
repo_dir
,
content
[
"patch_dir"
])
...
...
@@ -83,10 +85,11 @@ def build_package(repo_dir, package_dir, name,
elif
"git_url"
in
content
:
run_checked
([
"git"
,
"clone"
,
content
[
"git_url"
]])
else
:
print
(
raise
ValueError
(
"Unknown kind of additional content: {}"
.
format
(
content
))
os
.
chdir
(
workdir
)
command
=
[
"debchange"
,
"--preserve"
]
if
version
is
None
:
...
...
Write
Preview
Supports
Markdown
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