checkpoint

This commit is contained in:
John Smith 2022-06-06 13:27:16 -04:00
parent 1eb26758e9
commit 182af30b97
2 changed files with 9 additions and 17 deletions

View File

@ -9,12 +9,7 @@ FROM --platform amd64 ubuntu:16.04
# Install build prerequisites # Install build prerequisites
deps-base: deps-base:
RUN apt-get -y update RUN apt-get -y update
RUN apt-get install -y software-properties-common RUN apt-get install -y iproute2 curl build-essential cmake libssl-dev openssl file git pkg-config libdbus-1-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get -y update
RUN apt-get install -y iproute2 curl build-essential cmake libssl-dev openssl file git pkg-config python3.8 python3.8-distutils python3.8-dev libdbus-1-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev
RUN apt-get remove -y python3.5
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.8
# Install Cap'n Proto # Install Cap'n Proto
deps-capnp: deps-capnp:
@ -57,17 +52,9 @@ deps-android:
RUN cd /Android; unzip /Android/cmdline-tools.zip RUN cd /Android; unzip /Android/cmdline-tools.zip
RUN yes | /Android/cmdline-tools/bin/sdkmanager --sdk_root=/Android/Sdk build-tools\;30.0.3 ndk\;22.0.7026061 cmake\;3.18.1 platform-tools platforms\;android-30 RUN yes | /Android/cmdline-tools/bin/sdkmanager --sdk_root=/Android/Sdk build-tools\;30.0.3 ndk\;22.0.7026061 cmake\;3.18.1 platform-tools platforms\;android-30
# Install stub secrets daemon for keyring tests
deps-secretsd:
FROM +deps-android
COPY scripts/earthly/secretsd /secretsd
RUN pip install -r /secretsd/requirements.txt
RUN pip install keyring
RUN cp /secretsd/dbus/org.freedesktop.secrets.service /usr/share/dbus-1/services/org.freedesktop.secrets.service
# Clean up the apt cache to save space # Clean up the apt cache to save space
deps: deps:
FROM +deps-secretsd FROM +deps-android
RUN apt-get clean RUN apt-get clean
code: code:

View File

@ -1062,8 +1062,13 @@ impl NetworkManager {
} }
// Decode envelope header (may fail signature validation) // Decode envelope header (may fail signature validation)
let envelope = let envelope = Envelope::from_signed_data(data).map_err(|_| {
Envelope::from_signed_data(data).map_err(|_| "envelope failed to decode".to_owned())?; format!(
"envelope failed to decode from {:?}: {} bytes",
descriptor,
data.len()
)
})?;
// Get routing table and rpc processor // Get routing table and rpc processor
let (routing_table, rpc) = { let (routing_table, rpc) = {