coreos-base/update-ssh-keys: Fix crate handling in 9999

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2024-06-18 16:58:40 +01:00
parent d6a4dab482
commit d36ff5fbe8
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -7,13 +7,12 @@ EGIT_REPO_URI="https://github.com/flatcar/update-ssh-keys.git"
if [[ ${PV} == 9999 ]]; then
KEYWORDS="~amd64 ~arm64"
CRATES=""
else
EGIT_COMMIT="2a2aa89cd6eda6202de62b8870ca50945c836c54" # flatcar-master
KEYWORDS="amd64 arm64"
fi
# generated by cargo ebuild
CRATES="
CRATES="
anstream@0.6.4
anstyle@1.0.4
anstyle-parse@0.2.2
@ -61,14 +60,16 @@ CRATES="
windows_x86_64_gnu@0.48.5
windows_x86_64_gnullvm@0.48.5
windows_x86_64_msvc@0.48.5
"
"
SRC_URI="https://mirror.release.flatcar-linux.net/coreos/openssh-keys-0.5.1-alpha.0.crate"
fi
inherit cargo git-r3
DESCRIPTION="Utility for managing OpenSSH authorized public keys"
HOMEPAGE="https://github.com/flatcar/update-ssh-keys"
SRC_URI="https://mirror.release.flatcar-linux.net/coreos/openssh-keys-0.5.1-alpha.0.crate
${CARGO_CRATE_URIS}"
SRC_URI+=" ${CARGO_CRATE_URIS}"
LICENSE="Apache-2.0"
SLOT="0"
@ -79,5 +80,10 @@ RDEPEND="!<coreos-base/coreos-init-0.0.1-r152"
src_unpack() {
git-r3_src_unpack
if [[ ${PV} == 9999 ]]; then
cargo_live_src_unpack
else
cargo_src_unpack
fi
}