[Pkg-libvirt-commits] [Git][libvirt-team/libvirt][debian/latest] snippets: Assume DPKG_ROOT is set but possibly empty

Andrea Bolognani (@abologna) gitlab at salsa.debian.org
Sat Feb 1 16:58:27 GMT 2025



Andrea Bolognani pushed to branch debian/latest at Libvirt Packaging Team / libvirt


Commits:
0c020cf9 by Andrea Bolognani at 2025-02-01T16:15:52+01:00
snippets: Assume DPKG_ROOT is set but possibly empty

debhelper 13.24 changed its own snippets so that they look
like this, update ours to match.

Gbp-Dch: Ignore

- - - - -


1 changed file:

- debian/snippets.sh


Changes:

=====================================
debian/snippets.sh
=====================================
@@ -248,7 +248,7 @@ delete_protective_diversion() {
 
 #BEGIN SYSTEMD_DAEMON_RELOAD
 systemd_daemon_reload() {
-    if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ]; then
+    if [ -z "$DPKG_ROOT" ] && [ -d /run/systemd/system ]; then
         systemctl --system daemon-reload >/dev/null || true
     fi
 }
@@ -256,7 +256,7 @@ systemd_daemon_reload() {
 
 #BEGIN SYSTEMD_UNIT_RESTART_IF_ACTIVE
 systemd_unit_restart_if_active() {
-    if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ]; then
+    if [ -z "$DPKG_ROOT" ] && [ -d /run/systemd/system ]; then
         for unit in "$@"; do
             if systemctl is-active -q "$unit"; then
                 deb-systemd-invoke restart "$unit" >/dev/null || true



View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/commit/0c020cf9acd3ded703f3db5ae4a7354a5a778327

-- 
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/commit/0c020cf9acd3ded703f3db5ae4a7354a5a778327
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20250201/8e99a9dc/attachment-0001.htm>


More information about the Pkg-libvirt-commits mailing list