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
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():
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
:
with
open
(
os
.
path
.
join
(
parent
,
'sources.txt'
),
'r'
...
...
flatdeb/debos-runtimes.yaml
View file @
6a0cb3cb
...
...
@@ -344,12 +344,12 @@ actions:
-
action
:
run
label
:
list of included source code
chroot
:
false
command
:
>
set -e
;
cd "$ARTIFACTDIR"
;
dir="{{ or $sources_directory "$ROOTDIR/src/files" }}"
;
cp -v "$dir/
sources.txt
"
"{{ $sources_prefix }}.sources.txt"
command
:
|
set -e
cd "$ARTIFACTDIR"
dir="{{ or $sources_directory "$ROOTDIR/src/files" }}"
cp -v "$dir/
Sources.gz" "{{ $sources_prefix }}.deb822.gz
"
cp -v "$dir/sources.txt"
"{{ $sources_prefix }}.sources.txt"
-
action
:
run
label
:
list of missing source code
...
...
run.py
View file @
6a0cb3cb
...
...
@@ -1131,6 +1131,11 @@ class Builder:
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
:
logger
.
info
(
'Installing extra packages for SDK:'
)
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