Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ludovico de Nittis
flatdeb
Commits
6a0cb3cb
Commit
6a0cb3cb
authored
Oct 08, 2019
by
Simon McVittie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collect-source-code: Generate Sources.gz
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
c205e304
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
6 deletions
+33
-6
flatdeb/collect-source-code
flatdeb/collect-source-code
+22
-0
flatdeb/debos-runtimes.yaml
flatdeb/debos-runtimes.yaml
+6
-6
run.py
run.py
+5
-0
No files found.
flatdeb/collect-source-code
View file @
6a0cb3cb
...
@@ -310,6 +310,28 @@ def main():
...
@@ -310,6 +310,28 @@ def main():
parent
=
args
.
output
or
os
.
path
.
join
(
args
.
sysroot
,
'src'
,
'files'
)
parent
=
args
.
output
or
os
.
path
.
join
(
args
.
sysroot
,
'src'
,
'files'
)
with
open
(
os
.
path
.
join
(
parent
,
'Sources'
),
'w'
)
as
writer
:
subprocess
.
check_call
(
in_chroot
+
[
'sh'
,
'-euc'
,
'dir="$1"; shift; mkdir -p "$dir"; cd "$dir"; "$@"'
,
'sh'
,
# argv[0]
'/src/files'
,
# working directory
'dpkg-scansources'
,
'.'
,
],
stdout
=
writer
)
with
open
(
os
.
path
.
join
(
parent
,
'Sources.gz'
),
'wb'
)
as
binary_writer
:
subprocess
.
check_call
([
'pigz'
,
'-c'
,
'-n'
,
'--rsyncable'
,
os
.
path
.
join
(
parent
,
'Sources'
),
],
stdout
=
binary_writer
)
os
.
remove
(
os
.
path
.
join
(
parent
,
'Sources'
))
try
:
try
:
with
open
(
with
open
(
os
.
path
.
join
(
parent
,
'sources.txt'
),
'r'
os
.
path
.
join
(
parent
,
'sources.txt'
),
'r'
...
...
flatdeb/debos-runtimes.yaml
View file @
6a0cb3cb
...
@@ -344,12 +344,12 @@ actions:
...
@@ -344,12 +344,12 @@ actions:
-
action
:
run
-
action
:
run
label
:
list of included source code
label
:
list of included source code
chroot
:
false
chroot
:
false
command
:
>
command
:
|
set -e
;
set -e
cd "$ARTIFACTDIR"
;
cd "$ARTIFACTDIR"
dir="{{ or $sources_directory "$ROOTDIR/src/files" }}"
;
dir="{{ or $sources_directory "$ROOTDIR/src/files" }}"
cp -v "$dir/
sources.txt
"
cp -v "$dir/
Sources.gz" "{{ $sources_prefix }}.deb822.gz
"
"{{ $sources_prefix }}.sources.txt"
cp -v "$dir/sources.txt"
"{{ $sources_prefix }}.sources.txt"
-
action
:
run
-
action
:
run
label
:
list of missing source code
label
:
list of missing source code
...
...
run.py
View file @
6a0cb3cb
...
@@ -1131,6 +1131,11 @@ class Builder:
...
@@ -1131,6 +1131,11 @@ class Builder:
multiarch
=
True
,
multiarch
=
True
,
))
))
# We probably have this anyway, but we need it for
# dpkg-scansources
if
'dpkg-dev'
not
in
sdk_packages
:
sdk_packages
.
append
(
'dpkg-dev'
)
if
sdk_packages
:
if
sdk_packages
:
logger
.
info
(
'Installing extra packages for SDK:'
)
logger
.
info
(
'Installing extra packages for SDK:'
)
sdk_packages
.
sort
()
sdk_packages
.
sort
()
...
...
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