From f7234c24c90a60598018fbaa020f15a5ca3c82f0 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 2 Jan 2018 00:59:19 +0000 Subject: Support the "noudeb" build profile. --- debian/adjust-openssl-dependencies | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'debian/adjust-openssl-dependencies') diff --git a/debian/adjust-openssl-dependencies b/debian/adjust-openssl-dependencies index 5113ac164..cd740a8e1 100755 --- a/debian/adjust-openssl-dependencies +++ b/debian/adjust-openssl-dependencies @@ -28,8 +28,12 @@ server_udeb=debian/openssh-server-udeb.substvars libcrypto_package="$(sed -n 's/.*[= ]\(libcrypto[0-9][a-z0-9+.-]*\).*/\1/p' "$client_udeb")" if [ "$libcrypto_package" ]; then new_dep="$libcrypto_package (>= $libssl_version)" - sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$client_udeb" - sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$server_udeb" + if [ -e "$client_udeb" ]; then + sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$client_udeb" + fi + if [ -e "$server_udeb" ]; then + sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$server_udeb" + fi fi exit 0 -- cgit v1.2.3