mirror of https://gerrit.osmocom.org/osmo-ci
repo-install-test: install repo after repo key
In previous patch27ee885a68
, I made sure that "apt-get update" runs before trying to install wget to download the repository key. But of course the OBS repository should not be present before installing the repo key, or else it will fail: E: The repository 'http://download.opensuse.org/.../Debian_10 ./ InRelease' is not signed. Fixes:27ee885
("repo-install-test: apt update before install wget") Change-Id: If79484f9ffe2a14ce6481b53867f5aee111aa11b
This commit is contained in:
parent
bce53ba7d0
commit
52578dde20
|
@ -106,7 +106,6 @@ configure_osmocom_repo_debian() {
|
|||
local release_key="/var/cache/apt/${proj}_Release.key"
|
||||
|
||||
echo "Configuring Osmocom repository"
|
||||
echo "deb http://$obs_repo ./" > "/etc/apt/sources.list.d/$proj.list"
|
||||
|
||||
# Add repository key
|
||||
if ! [ -e "$release_key" ]; then
|
||||
|
@ -116,6 +115,7 @@ configure_osmocom_repo_debian() {
|
|||
fi
|
||||
apt-key add "$release_key"
|
||||
|
||||
echo "deb http://$obs_repo ./" > "/etc/apt/sources.list.d/$proj.list"
|
||||
apt-get update
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue