Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flatdeb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Ludovico de Nittis
flatdeb
Commits
77a8ad48
Commit
77a8ad48
authored
Aug 13, 2019
by
Simon McVittie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --apt-debug, --no-apt-debug options
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
2cb972e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
run.py
run.py
+14
-0
No files found.
run.py
View file @
77a8ad48
...
...
@@ -202,6 +202,7 @@ class Builder:
def
__init__
(
self
):
# type: () -> None
self
.
apt_debug
=
False
#: The Debian suite to use
self
.
apt_suite
=
'stretch'
#: The Flatpak branch to use for the runtime, or None for apt_suite
...
...
@@ -466,6 +467,10 @@ class Builder:
parser
.
add_argument
(
'--sdk-variant-id'
,
default
=
None
)
subparsers
=
parser
.
add_subparsers
(
dest
=
'command'
,
metavar
=
'command'
)
parser
.
add_argument
(
'--apt-debug'
,
action
=
'store_true'
)
parser
.
add_argument
(
'--no-apt-debug'
,
dest
=
'apt_debug'
,
action
=
'store_false'
)
subparser
=
subparsers
.
add_parser
(
'base'
,
...
...
@@ -514,6 +519,7 @@ class Builder:
if
args
.
chdir
is
not
None
:
os
.
chdir
(
args
.
chdir
)
self
.
apt_debug
=
args
.
apt_debug
self
.
build_area
=
args
.
build_area
self
.
build_id
=
args
.
build_id
self
.
variant_name
=
args
.
variant_name
...
...
@@ -745,6 +751,10 @@ class Builder:
),
]
if
self
.
apt_debug
:
argv
.
append
(
'-t'
)
argv
.
append
(
'apt_debug:true'
)
if
self
.
build_id
is
not
None
:
argv
.
append
(
'-t'
)
argv
.
append
(
'build_id:{}'
.
format
(
self
.
build_id
))
...
...
@@ -929,6 +939,10 @@ class Builder:
self
.
strip_source_version_suffix
),
]
if
self
.
apt_debug
:
argv
.
append
(
'-t'
)
argv
.
append
(
'apt_debug:true'
)
if
self
.
build_id
is
not
None
:
argv
.
append
(
'-t'
)
argv
.
append
(
'build_id:{}'
.
format
(
self
.
build_id
))
...
...
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