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
Frederic Danis
flatdeb
Commits
d03bc987
Commit
d03bc987
authored
Jun 08, 2018
by
Simon McVittie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base: Try to use authenticated apt
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
cc01a8da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
21 deletions
+39
-21
flatdeb/debos-base.yaml
flatdeb/debos-base.yaml
+7
-4
run.py
run.py
+32
-17
No files found.
flatdeb/debos-base.yaml
View file @
d03bc987
...
...
@@ -5,7 +5,7 @@
{{
- $foreignarchs
:
= or .foreignarchs "" -
}}
{{
- $mirror
:
= or .mirror "http
:
//deb.debian.org/debian" -
}}
{{
- $mergedusr
:
= or .mergedusr "false"
}}
{{
- $keyring
:
= or .keyring "
debian-archive-keyring.gpg
" -
}}
{{
- $keyring
:
= or .keyring "" -
}}
{{
- $keyringpackage
:
= or .keyringpackage "" -
}}
{{
- $version
:
= or .version "0" -
}}
{{
- $ospack
:
= or .ospack (printf "base_%s_%s_%s.tar.gz" $suite $version $architecture) -
}}
...
...
@@ -28,9 +28,12 @@ actions:
components
:
{{
$components
}}
{{
end
}}
mirror
:
{{
$mirror
}}
# TODO: See https://github.com/go-debos/debos/issues/21
# keyringpackage: {{ $keyringpackage }}
# keyring: {{ $keyring }}
{{
if $keyring
}}
keyring-file
:
{{
$keyring
}}
{{
end
}}
{{
if $keyringpackage
}}
keyring-package
:
{{
$keyringpackage
}}
{{
end
}}
{{
if eq $mergedusr "after_debootstrap"
}}
merged-usr
:
false
{{
else
}}
...
...
run.py
View file @
d03bc987
...
...
@@ -392,23 +392,6 @@ class Builder:
logger
.
debug
(
'Ignoring /usr/share/debootstrap/scripts/%s'
,
script
)
keyring
=
self
.
suite_details
[
'sources'
][
0
].
get
(
'keyring'
)
if
keyring
is
not
None
:
if
os
.
path
.
exists
(
os
.
path
.
join
(
'suites'
,
keyring
)):
keyring
=
os
.
path
.
join
(
'suites'
,
keyring
)
elif
os
.
path
.
exists
(
keyring
):
pass
else
:
raise
RuntimeError
(
'Cannot open {}'
.
format
(
keyring
))
dest
=
'{}/suites/{}/overlay/etc/apt/trusted.gpg.d/{}'
.
format
(
self
.
worker
.
scratch
,
apt_suite
,
os
.
path
.
basename
(
keyring
),
)
self
.
worker
.
install_file
(
os
.
path
.
abspath
(
keyring
),
dest
)
self
.
configure_apt
(
'{}/suites/{}/overlay'
.
format
(
self
.
worker
.
scratch
,
apt_suite
))
...
...
@@ -431,6 +414,33 @@ class Builder:
),
]
keyring
=
self
.
suite_details
[
'sources'
][
0
].
get
(
'keyring'
)
if
keyring
is
not
None
:
if
os
.
path
.
exists
(
os
.
path
.
join
(
'suites'
,
keyring
)):
keyring
=
os
.
path
.
join
(
'suites'
,
keyring
)
elif
os
.
path
.
exists
(
keyring
):
pass
else
:
raise
RuntimeError
(
'Cannot open {}'
.
format
(
keyring
))
dest
=
'{}/suites/{}/overlay/etc/apt/trusted.gpg.d/{}'
.
format
(
self
.
worker
.
scratch
,
apt_suite
,
os
.
path
.
basename
(
keyring
),
)
self
.
worker
.
install_file
(
os
.
path
.
abspath
(
keyring
),
dest
)
argv
.
append
(
'-t'
)
argv
.
append
(
'keyring:suites/{}/overlay/etc/apt/trusted.gpg.d/{}'
.
format
(
apt_suite
,
os
.
path
.
basename
(
keyring
),
)
)
else
:
keyring
=
''
components
=
self
.
suite_details
.
get
(
'apt_components'
,
[
'main'
])
if
components
:
...
...
@@ -907,6 +917,11 @@ class Builder:
keyfile
.
save_to_file
(
metadata
)
self
.
worker
.
check_call
([
'install'
,
'-d'
,
'{}/ostree/source/metadata'
.
format
(
overlay
),
])
self
.
worker
.
install_file
(
metadata
,
'{}/ostree/source/metadata'
.
format
(
overlay
),
...
...
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