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
d04deddb
Commit
d04deddb
authored
Jan 07, 2019
by
Robin Sonnabend
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
scripts/build.py
scripts/build.py
+10
-7
No files found.
scripts/build.py
View file @
d04deddb
...
@@ -63,19 +63,21 @@ def build_package(repo_dir, package_dir, name,
...
@@ -63,19 +63,21 @@ def build_package(repo_dir, package_dir, name,
"Extracted package {} is not expected package {}"
.
format
(
"Extracted package {} is not expected package {}"
.
format
(
pkg_name
,
name
))
pkg_name
,
name
))
print
(
"Extracted name"
,
pkg_dir
,
pkg_name
)
workdir
=
os
.
path
.
join
(
tempdir
,
pkg_dir
)
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
:
if
additional_content
is
not
None
:
print
(
"applying additional content"
)
print
(
"applying additional content"
)
os
.
chdir
(
workdir
)
os
.
chdir
(
workdir
)
print
(
os
.
listdir
())
for
content
in
additional_content
:
for
content
in
additional_content
:
print
(
"applying {}"
.
format
(
content
))
target_dir
=
content
[
"target_dir"
]
os
.
chdir
(
content
[
"target_dir"
])
print
(
"applying"
,
content
,
"in"
,
target_dir
)
print
(
os
.
listdir
())
os
.
listdir
(
target_dir
)
os
.
chdir
(
target_dir
)
if
"patch_dir"
in
content
:
if
"patch_dir"
in
content
:
abs_patch_dir
=
os
.
path
.
join
(
abs_patch_dir
=
os
.
path
.
join
(
repo_dir
,
content
[
"patch_dir"
])
repo_dir
,
content
[
"patch_dir"
])
...
@@ -83,10 +85,11 @@ def build_package(repo_dir, package_dir, name,
...
@@ -83,10 +85,11 @@ def build_package(repo_dir, package_dir, name,
elif
"git_url"
in
content
:
elif
"git_url"
in
content
:
run_checked
([
"git"
,
"clone"
,
content
[
"git_url"
]])
run_checked
([
"git"
,
"clone"
,
content
[
"git_url"
]])
else
:
else
:
print
(
raise
ValueError
(
"Unknown kind of additional content: {}"
.
format
(
"Unknown kind of additional content: {}"
.
format
(
content
))
content
))
os
.
chdir
(
workdir
)
command
=
[
"debchange"
,
"--preserve"
]
command
=
[
"debchange"
,
"--preserve"
]
if
version
is
None
:
if
version
is
None
:
...
...
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