From 8b94dbd8957b99065b473794ca1a86203aa76df8 Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Mon, 24 Jun 2019 18:31:08 +0200 Subject: [PATCH] Follow some more lintian recommendations * provide a long description * `set -e` in maintainer scripts Signed-off-by: Laurent Bonnans --- CMakeLists.txt | 2 +- config/systemd/debian-control/postrm | 2 ++ config/systemd/debian-control/prerm | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54d0cfa837..06605857dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -357,7 +357,7 @@ endif(BUILD_SOTA_TOOLS) set(CPACK_DEBIAN_AKTUALIZR_PACKAGE_NAME "aktualizr") set(CPACK_DEBIAN_AKTUALIZR_FILE_NAME "aktualizr.deb") # only available for CMake >= 3.6.0 -set(CPACK_COMPONENT_AKTUALIZR_DESCRIPTION "UPTANE-compliant embedded software update client") +set(CPACK_COMPONENT_AKTUALIZR_DESCRIPTION "UPTANE-compliant embedded software update client\n Aktualizr communicates with OTA-Connect,\n reports device information, fetch and install package updates") set(CPACK_DEBIAN_AKTUALIZR_PACKAGE_DEPENDS "lshw") set(CPACK_DEBIAN_AKTUALIZR_PACKAGE_SHLIBDEPS ON) set(CPACK_DEBIAN_AKTUALIZR_PACKAGE_CONTROL_EXTRA "${PROJECT_SOURCE_DIR}/config/systemd/debian-control/prerm;${PROJECT_SOURCE_DIR}/config/systemd/debian-control/postrm;") diff --git a/config/systemd/debian-control/postrm b/config/systemd/debian-control/postrm index fb3bf09543..03d73d0337 100755 --- a/config/systemd/debian-control/postrm +++ b/config/systemd/debian-control/postrm @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ -d /run/systemd/system ]; then systemctl --system daemon-reload > /dev/null || true fi diff --git a/config/systemd/debian-control/prerm b/config/systemd/debian-control/prerm index 252cd53d35..3ed04f8d2e 100755 --- a/config/systemd/debian-control/prerm +++ b/config/systemd/debian-control/prerm @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper stop 'aktualizr.service' >/dev/null || true