Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
packages
Commits
d04deddb
Commit
d04deddb
authored
6 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
More debug output
parent
486475b4
No related branches found
No related tags found
No related merge requests found
Pipeline
#577
failed
6 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/build.py
+10
-7
10 additions, 7 deletions
scripts/build.py
with
10 additions
and
7 deletions
scripts/build.py
+
10
−
7
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment